diff --git a/eng/Directory.Build.Common.targets b/eng/Directory.Build.Common.targets index f6f54e7bece56..eb60f4eef63f0 100644 --- a/eng/Directory.Build.Common.targets +++ b/eng/Directory.Build.Common.targets @@ -204,7 +204,6 @@ - diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 5379885a7ab11..423e8c44951c0 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -203,7 +203,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index 465bc3d735292..c353afb40c371 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240303.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20240304.1" }, "devDependencies": { "@azure-tools/typespec-azure-core": "0.39.1", @@ -18,9 +18,9 @@ } }, "node_modules/@autorest/csharp": { - "version": "3.0.0-beta.20240303.1", - "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240303.1.tgz", - "integrity": "sha512-gD1PtPIxGBt8ExsM6tW0+dSHBlRh5jH1m9QDtvgiQ3cSL/R/0X6lgcpA4tmT0pMyQcksDF8xmvkunaLJjGIE4g==" + "version": "3.0.0-beta.20240304.1", + "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240304.1.tgz", + "integrity": "sha512-EKhX3sepZTORsjOdAFw3JqvjHVPKics5vSXtQzJBH0AwA4mMZJtdm9B4SOiH8iJRSS3DrQm/yJPBai7IkMvmnw==" }, "node_modules/@azure-tools/typespec-azure-core": { "version": "0.39.1", @@ -56,11 +56,11 @@ } }, "node_modules/@azure-tools/typespec-csharp": { - "version": "0.2.0-beta.20240303.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240303.1.tgz", - "integrity": "sha512-jiwpDYV3ehtJNauTT1f7XZ8Bhrd5w3YuI6sZGKqe+EYx7kxNMf/nHBmG1Djqy+ZAgnhdwCkpa7aSszDtkNdOWA==", + "version": "0.2.0-beta.20240304.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240304.1.tgz", + "integrity": "sha512-Nvr+HkktrFbf0HvWQIHby7OBAxo4HX+OktAzpjGsqcpd0MwcBMYehhtjpJy6NVwWDHM2PRnqS/FQK/H3tSdIng==", "dependencies": { - "@autorest/csharp": "3.0.0-beta.20240303.1", + "@autorest/csharp": "3.0.0-beta.20240304.1", "json-serialize-refs": "0.1.0-0", "winston": "^3.8.2" }, diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 63ae831ab909f..dd93ba00cc7d5 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,15 +1,15 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240303.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20240304.1" }, "devDependencies": { "@typespec/versioning": "0.53.0", "@azure-tools/typespec-azure-core": "0.39.1", - "@typespec/compiler": "0.53.1", - "@azure-tools/typespec-client-generator-core": "0.40.0-dev.14", "@typespec/openapi": "0.53.0", "@typespec/http": "0.53.0", - "@typespec/rest": "0.53.0" + "@typespec/rest": "0.53.0", + "@typespec/compiler": "0.53.1", + "@azure-tools/typespec-client-generator-core": "0.40.0-dev.14" } } diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Internal/ChangeTrackingList.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..2e5ceb9480bcc --- /dev/null +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Advisor +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ConfigData.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ConfigData.cs index 47f4b9b13cc1b..90ea81077b44c 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ConfigData.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ConfigData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Advisor; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Advisor.Models diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ConfigurationListResult.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ConfigurationListResult.cs index 1fa81ea74525c..ad66bdcf6da3d 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ConfigurationListResult.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ConfigurationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Advisor; namespace Azure.ResourceManager.Advisor.Models { diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/DigestConfig.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/DigestConfig.cs index 155d9c99d1f41..b3f25016f7efe 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/DigestConfig.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/DigestConfig.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Advisor; namespace Azure.ResourceManager.Advisor.Models { diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/MetadataEntityListResult.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/MetadataEntityListResult.cs index a72064a5cd053..e6e06a9b39778 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/MetadataEntityListResult.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/MetadataEntityListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Advisor; namespace Azure.ResourceManager.Advisor.Models diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ResourceRecommendationBaseListResult.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ResourceRecommendationBaseListResult.cs index 6c24bcaae2b5f..89d8b05fd7bc7 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ResourceRecommendationBaseListResult.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/ResourceRecommendationBaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Advisor; namespace Azure.ResourceManager.Advisor.Models diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/SuppressionContractListResult.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/SuppressionContractListResult.cs index 6580c69a71190..71bed0a2f5e2a 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/SuppressionContractListResult.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/Models/SuppressionContractListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Advisor; namespace Azure.ResourceManager.Advisor.Models diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Internal/ChangeTrackingList.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..c57fc48660fe2 --- /dev/null +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.AgFoodPlatform +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/AgFoodPlatformPrivateEndpointConnectionListResult.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/AgFoodPlatformPrivateEndpointConnectionListResult.cs index 95bf818effae0..ceb2a4ffba654 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/AgFoodPlatformPrivateEndpointConnectionListResult.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/AgFoodPlatformPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AgFoodPlatform; namespace Azure.ResourceManager.AgFoodPlatform.Models diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/AgFoodPlatformPrivateLinkResourceListResult.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/AgFoodPlatformPrivateLinkResourceListResult.cs index aa46fe13ab354..e3dca636849df 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/AgFoodPlatformPrivateLinkResourceListResult.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/AgFoodPlatformPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AgFoodPlatform; namespace Azure.ResourceManager.AgFoodPlatform.Models diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/DetailedInformation.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/DetailedInformation.cs index d01b86412fb04..2702f0001799b 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/DetailedInformation.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/DetailedInformation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AgFoodPlatform; namespace Azure.ResourceManager.AgFoodPlatform.Models { diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/ExtensionListResponse.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/ExtensionListResponse.cs index 07fe0981a65b3..b39bfacf8cc57 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/ExtensionListResponse.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/ExtensionListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AgFoodPlatform; namespace Azure.ResourceManager.AgFoodPlatform.Models diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/FarmBeatsExtensionListResponse.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/FarmBeatsExtensionListResponse.cs index 2bba24e790147..84e592a27725b 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/FarmBeatsExtensionListResponse.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/FarmBeatsExtensionListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AgFoodPlatform; namespace Azure.ResourceManager.AgFoodPlatform.Models diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/FarmBeatsListResponse.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/FarmBeatsListResponse.cs index fb6f5895a805d..d058a3a9c40ac 100644 --- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/FarmBeatsListResponse.cs +++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/Models/FarmBeatsListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AgFoodPlatform; namespace Azure.ResourceManager.AgFoodPlatform.Models diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Internal/ChangeTrackingList.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..eb58e58709352 --- /dev/null +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Verticals.AgriFood.Farming +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Internal/ChangeTrackingList.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..da645c56f48b2 --- /dev/null +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.AlertsManagement +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleCondition.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleCondition.cs index a0de5a4b97798..7b589dc12b385 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleCondition.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AlertsManagement; namespace Azure.ResourceManager.AlertsManagement.Models { diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleProperties.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleProperties.cs index ba86057141dac..9f6803ece5e67 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleProperties.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleProperties.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.AlertsManagement; namespace Azure.ResourceManager.AlertsManagement.Models { diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleSchedule.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleSchedule.cs index 0c4949fb41385..37ade0794ec1f 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleSchedule.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRuleSchedule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AlertsManagement; namespace Azure.ResourceManager.AlertsManagement.Models { diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRulesList.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRulesList.cs index dd4b700718f21..8136928469f65 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRulesList.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/AlertProcessingRulesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AlertsManagement; namespace Azure.ResourceManager.AlertsManagement.Models diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertListResult.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertListResult.cs index 3202b256a5334..cd8623a9be9ca 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertListResult.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AlertsManagement; namespace Azure.ResourceManager.AlertsManagement.Models diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertModificationProperties.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertModificationProperties.cs index 6712951837713..a641536dc6829 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertModificationProperties.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertModificationProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AlertsManagement; namespace Azure.ResourceManager.AlertsManagement.Models { diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertSummaryGroup.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertSummaryGroup.cs index 78934559f7f18..edf94e32a75f1 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertSummaryGroup.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertSummaryGroup.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AlertsManagement; namespace Azure.ResourceManager.AlertsManagement.Models { diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertSummaryGroupItemInfo.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertSummaryGroupItemInfo.cs index 407418f47ad10..848bef2486028 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertSummaryGroupItemInfo.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/ServiceAlertSummaryGroupItemInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AlertsManagement; namespace Azure.ResourceManager.AlertsManagement.Models { diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupModificationProperties.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupModificationProperties.cs index 2ebc258172f4b..3148a89d7ecca 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupModificationProperties.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupModificationProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AlertsManagement; namespace Azure.ResourceManager.AlertsManagement.Models { diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupsList.cs b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupsList.cs index 9478778ecc7fa..e5e45d6b67692 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupsList.cs +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Generated/Models/SmartGroupsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AlertsManagement; namespace Azure.ResourceManager.AlertsManagement.Models diff --git a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Internal/ChangeTrackingList.cs b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..1ab7c6e57df0b --- /dev/null +++ b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Analysis +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/AnalysisIPv4FirewallSettings.cs b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/AnalysisIPv4FirewallSettings.cs index 4dad00b902ab2..8b8b5abce71fa 100644 --- a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/AnalysisIPv4FirewallSettings.cs +++ b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/AnalysisIPv4FirewallSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Analysis; namespace Azure.ResourceManager.Analysis.Models { diff --git a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/ExistingResourceResultSkuEnumeration.cs b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/ExistingResourceResultSkuEnumeration.cs index b5da8bf2c1ad1..f3506bbdfbd47 100644 --- a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/ExistingResourceResultSkuEnumeration.cs +++ b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/ExistingResourceResultSkuEnumeration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Analysis; namespace Azure.ResourceManager.Analysis.Models { diff --git a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/NewResourceResultSkuEnumeration.cs b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/NewResourceResultSkuEnumeration.cs index f482b7df68fe7..c5ad3a8603148 100644 --- a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/NewResourceResultSkuEnumeration.cs +++ b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/NewResourceResultSkuEnumeration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Analysis; namespace Azure.ResourceManager.Analysis.Models { diff --git a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/ServerAdministrators.cs b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/ServerAdministrators.cs index 2cf549efcb66c..5a1570d03903a 100644 --- a/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/ServerAdministrators.cs +++ b/sdk/analysisservices/Azure.ResourceManager.Analysis/src/Generated/Models/ServerAdministrators.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Analysis; namespace Azure.ResourceManager.Analysis.Models { diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyState.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyState.cs index 44e9f3b1c21f7..5eb76bea55b4e 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyState.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyState.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.AnomalyDetector { diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyValue.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyValue.cs index c40794ef139bc..636f981364d59 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyValue.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyValue.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.AnomalyDetector { diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/CorrelationChanges.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/CorrelationChanges.cs index 394d29cc62202..a15516beee303 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/CorrelationChanges.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/CorrelationChanges.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.AnomalyDetector { diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/DiagnosticsInfo.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/DiagnosticsInfo.cs index c61c8f1645d09..41c14716b5fc5 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/DiagnosticsInfo.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/DiagnosticsInfo.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.AnomalyDetector { diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Internal/ChangeTrackingList.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..f6bc141694f56 --- /dev/null +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.AnomalyDetector +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelInfo.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelInfo.cs index 75b7c14295667..7bacd7858b80e 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelInfo.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelInfo.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.AnomalyDetector { diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelState.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelState.cs index 02429a81e23db..c14eb505af847 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelState.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelState.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.AnomalyDetector { diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/MultivariateBatchDetectionResultSummary.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/MultivariateBatchDetectionResultSummary.cs index 94e75fe218d18..2a81b3cfbf70d 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/MultivariateBatchDetectionResultSummary.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/MultivariateBatchDetectionResultSummary.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.AnomalyDetector { diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/MultivariateLastDetectionResult.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/MultivariateLastDetectionResult.cs index 48aeb78a4e89f..be55f168d87c2 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/MultivariateLastDetectionResult.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/MultivariateLastDetectionResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.AnomalyDetector { diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/UnivariateChangePointDetectionResult.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/UnivariateChangePointDetectionResult.cs index 8221b2198ea97..7b5e2b4197033 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/UnivariateChangePointDetectionResult.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/UnivariateChangePointDetectionResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.AnomalyDetector { diff --git a/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/Internal/ChangeTrackingList.cs b/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..7cbe16a442737 --- /dev/null +++ b/sdk/apicenter/Azure.ResourceManager.ApiCenter/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ApiCenter +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Internal/ChangeTrackingList.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..f82c02dcc028a --- /dev/null +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ApiManagement +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AccessInformationListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AccessInformationListResult.cs index 549b2ed113623..1cc0fdac186e5 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AccessInformationListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AccessInformationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AdditionalLocation.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AdditionalLocation.cs index c551a86f99a2c..bbe57c4bc8136 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AdditionalLocation.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AdditionalLocation.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Net; using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateContent.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateContent.cs index 3e1bb078a59ed..8a8b7aec313c0 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateContent.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiListResult.cs index 452c200a0f111..7a82e53cc506d 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerPatch.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerPatch.cs index ffa2d8d830857..953ee8b4cf057 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerPatch.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementEmailTemplateCreateOrUpdateContent.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementEmailTemplateCreateOrUpdateContent.cs index e4b7f9d9b6fe1..71e2580a9cb87 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementEmailTemplateCreateOrUpdateContent.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementEmailTemplateCreateOrUpdateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGatewayApiListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGatewayApiListResult.cs index 30708a29a2816..9d4091715b5b4 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGatewayApiListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGatewayApiListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupUserData.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupUserData.cs index dafc8c7505ac5..a24fcf3566ea5 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupUserData.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupUserData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupUserListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupUserListResult.cs index e6e582f5ed5ad..d63a34f1b780b 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupUserListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementGroupUserListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderCreateOrUpdateContent.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderCreateOrUpdateContent.cs index ff7a762ce17bf..8e92029000737 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderCreateOrUpdateContent.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderCreateOrUpdateContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderPatch.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderPatch.cs index 6c73e82f287ce..e1a45f1ca80d4 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderPatch.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementNamedValueCreateOrUpdateContent.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementNamedValueCreateOrUpdateContent.cs index 0bc095dd436f9..226b3eadf8c4e 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementNamedValueCreateOrUpdateContent.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementNamedValueCreateOrUpdateContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementNamedValuePatch.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementNamedValuePatch.cs index ccaf6d052b648..700eb3b07e4e2 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementNamedValuePatch.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementNamedValuePatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPrivateEndpointConnectionListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPrivateEndpointConnectionListResult.cs index 7a6922ef2ead0..edb1776cb4f45 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPrivateEndpointConnectionListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPrivateLinkResourceListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPrivateLinkResourceListResult.cs index fa1877a9ae5a3..a60047acccf17 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPrivateLinkResourceListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductApiListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductApiListResult.cs index 5891822b8b5b7..d89693a8ec664 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductApiListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductApiListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductGroupListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductGroupListResult.cs index 7016243805cc8..14ba189ffd249 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductGroupListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementProductGroupListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServicePatch.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServicePatch.cs index a54a2322187e0..491fbed671430 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServicePatch.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServicePatch.cs @@ -10,6 +10,7 @@ using System.Net; using Azure; using Azure.Core; +using Azure.ResourceManager.ApiManagement; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSku.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSku.cs index 3f4eeb4a5797b..e4e79a6236466 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSku.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSku.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuLocationInfo.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuLocationInfo.cs index c720f9b91925b..79399534335bf 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuLocationInfo.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuLocationInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictionInfo.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictionInfo.cs index b042e005cc76b..3dbe26ffc258f 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictionInfo.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictionInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictions.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictions.cs index 029e723e2708a..72a96571078c2 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictions.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuRestrictions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuZoneDetails.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuZoneDetails.cs index 12b1b21643ba6..2e97a04bc812b 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuZoneDetails.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementSkuZoneDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementUserCreateOrUpdateContent.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementUserCreateOrUpdateContent.cs index 47c3deab57ca8..6c4e9ec339c79 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementUserCreateOrUpdateContent.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementUserCreateOrUpdateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementUserPatch.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementUserPatch.cs index 1b693986da253..87e3d235e0546 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementUserPatch.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementUserPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiOperationPatch.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiOperationPatch.cs index 7b502441f29f1..9350bf0b97f0c 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiOperationPatch.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiOperationPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiPatch.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiPatch.cs index 20c7154dacb9c..2ddd85a583cce 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiPatch.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiReleaseListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiReleaseListResult.cs index cebe92a39c819..c789af483c9a2 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiReleaseListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiReleaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiRevisionListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiRevisionListResult.cs index 916a3108c383f..21038b43daded 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiRevisionListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiRevisionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiVersionSetListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiVersionSetListResult.cs index e2844e7b7e815..9ff2a349fa1cd 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiVersionSetListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiVersionSetListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AssociatedApiProperties.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AssociatedApiProperties.cs index 5da1ed5a1d1b2..ee42456b3151a 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AssociatedApiProperties.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AssociatedApiProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AuthorizationServerListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AuthorizationServerListResult.cs index 3eca352b01671..44ec91c4a8bb9 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AuthorizationServerListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AuthorizationServerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/BackendCredentialsContract.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/BackendCredentialsContract.cs index 8850072a3bcbc..ec79f450ba94b 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/BackendCredentialsContract.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/BackendCredentialsContract.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/BackendListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/BackendListResult.cs index 6434e0d7b41af..6032820cc2816 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/BackendListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/BackendListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/BackendServiceFabricClusterProperties.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/BackendServiceFabricClusterProperties.cs index 1f8adb849027d..becf3e09ed856 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/BackendServiceFabricClusterProperties.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/BackendServiceFabricClusterProperties.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/CacheListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/CacheListResult.cs index 5b6036ee84794..bd74e39b20958 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/CacheListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/CacheListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/CertificateListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/CertificateListResult.cs index 152c665b01e25..ce80e70715bb9 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/CertificateListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/CertificateListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityCheckRequestHttpConfiguration.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityCheckRequestHttpConfiguration.cs index e89de84045065..0b922a38c7f7d 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityCheckRequestHttpConfiguration.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityCheckRequestHttpConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityCheckResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityCheckResult.cs index 99a973bfbb3df..b1d3aeba5ed5e 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityCheckResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityCheckResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityHop.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityHop.cs index 39c512bbd1163..0079ed2880568 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityHop.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityHop.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Net; using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityIssue.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityIssue.cs index 77f0e7453e6be..68d0fbd281bd1 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityIssue.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ConnectivityIssue.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ContentItemListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ContentItemListResult.cs index 952e78d8a9120..9e07708d2e916 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ContentItemListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ContentItemListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ContentTypeListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ContentTypeListResult.cs index 1c6aa1a66d5a1..86429cc048227 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ContentTypeListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ContentTypeListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/DataMasking.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/DataMasking.cs index 4c39fef421471..595959efaf746 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/DataMasking.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/DataMasking.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/DeletedServicesListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/DeletedServicesListResult.cs index ec64eb4bc2c34..2190785eef664 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/DeletedServicesListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/DeletedServicesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/DiagnosticListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/DiagnosticListResult.cs index 5d1d34b730094..1fb689030a48d 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/DiagnosticListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/DiagnosticListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/EmailTemplateListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/EmailTemplateListResult.cs index 427df73acd987..61aa834788b5d 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/EmailTemplateListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/EmailTemplateListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/EndpointDependency.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/EndpointDependency.cs index 03cafd97a2403..f6e61a20457c6 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/EndpointDependency.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/EndpointDependency.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ErrorResponseBody.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ErrorResponseBody.cs index 11729d992eb5a..ed4b02490b3d9 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ErrorResponseBody.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ErrorResponseBody.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayApiData.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayApiData.cs index 7f3bbccc08fd9..7d6703c191ce2 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayApiData.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayApiData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayCertificateAuthorityListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayCertificateAuthorityListResult.cs index 3a3373fc372d4..0069e6bb5ee56 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayCertificateAuthorityListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayCertificateAuthorityListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayHostnameConfigurationListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayHostnameConfigurationListResult.cs index 52e959d84f8b7..c6f9656431a20 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayHostnameConfigurationListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayHostnameConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayListResult.cs index 675bab9608895..2c7aa33c5cc90 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GatewayListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GitOperationResultContractData.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GitOperationResultContractData.cs index cb917e7f6198a..59c4041c5cc9b 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GitOperationResultContractData.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GitOperationResultContractData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GlobalSchemaListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GlobalSchemaListResult.cs index 3fda776948671..28b6daded8623 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GlobalSchemaListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GlobalSchemaListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GroupListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GroupListResult.cs index 1e16f10757cea..8750dfb524cc6 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GroupListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/GroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/HttpMessageDiagnostic.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/HttpMessageDiagnostic.cs index b4f8969ac047c..5121a2cb5a95a 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/HttpMessageDiagnostic.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/HttpMessageDiagnostic.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IdentityProviderList.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IdentityProviderList.cs index 3fbfe64ee5633..9e9eed0fb562b 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IdentityProviderList.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IdentityProviderList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IssueAttachmentListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IssueAttachmentListResult.cs index 74b7b06828059..0d596e5b68c04 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IssueAttachmentListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IssueAttachmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IssueCommentListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IssueCommentListResult.cs index b31fe38c1e99d..0ef5bd9154774 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IssueCommentListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IssueCommentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IssueListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IssueListResult.cs index 5e605cdcb02d4..797db87d0bdd2 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IssueListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/IssueListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/LoggerListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/LoggerListResult.cs index 504cbc5195f70..374471691b5b7 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/LoggerListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/LoggerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/NamedValueListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/NamedValueListResult.cs index e76e8c4672d80..2692dbf86fe98 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/NamedValueListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/NamedValueListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/NotificationListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/NotificationListResult.cs index 38f47b91ba85e..e8ae387947454 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/NotificationListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/NotificationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OpenIdAuthenticationSettingsContract.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OpenIdAuthenticationSettingsContract.cs index 339fcda456d7d..d722aa0406839 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OpenIdAuthenticationSettingsContract.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OpenIdAuthenticationSettingsContract.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OpenIdConnectProviderListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OpenIdConnectProviderListResult.cs index 1561fdc9473ce..132f7abc08b89 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OpenIdConnectProviderListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OpenIdConnectProviderListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OperationListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OperationListResult.cs index 0ea13d8338911..f012d3ad857c7 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OperationListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OperationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OutboundEnvironmentEndpoint.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OutboundEnvironmentEndpoint.cs index 76aba28ed7aec..e2296629a3c5f 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OutboundEnvironmentEndpoint.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/OutboundEnvironmentEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ParameterContract.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ParameterContract.cs index 190aacd2558a8..74bd4b6f52e61 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ParameterContract.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ParameterContract.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PolicyDescriptionListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PolicyDescriptionListResult.cs index 037bd6d513f3e..5f5be45b39630 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PolicyDescriptionListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PolicyDescriptionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PolicyListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PolicyListResult.cs index c176044d61656..4d200026b19db 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PolicyListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PortalRevisionListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PortalRevisionListResult.cs index 30c52e833d254..90d397a4af79d 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PortalRevisionListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PortalRevisionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PortalSettingsListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PortalSettingsListResult.cs index b25a9f4ac5236..01cfd1da9211d 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PortalSettingsListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/PortalSettingsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ProductApiData.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ProductApiData.cs index b20aac0e30c3f..4c1460420b9cf 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ProductApiData.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ProductApiData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ProductListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ProductListResult.cs index 0fb1108016fb3..e79e0b6938d51 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ProductListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ProductListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/QuotaCounterListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/QuotaCounterListResult.cs index 1d1b7a91fe1f4..a36eed006e4e6 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/QuotaCounterListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/QuotaCounterListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RecipientEmailListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RecipientEmailListResult.cs index 9891f5265af0a..9ab9d6eabd3c9 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RecipientEmailListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RecipientEmailListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RecipientUserListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RecipientUserListResult.cs index ef52fcb1c6680..cb1d6e2e93eaa 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RecipientUserListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RecipientUserListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RecipientsContractProperties.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RecipientsContractProperties.cs index 4afdf630fb742..53351072237ab 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RecipientsContractProperties.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RecipientsContractProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RegionListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RegionListResult.cs index 8f037ab3387ea..b8dec6323fc97 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RegionListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RegionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RemotePrivateEndpointConnectionWrapper.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RemotePrivateEndpointConnectionWrapper.cs index 0e3942efc0256..434617d6112e0 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RemotePrivateEndpointConnectionWrapper.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RemotePrivateEndpointConnectionWrapper.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ReportListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ReportListResult.cs index c1f3637a73a51..8f932522db9de 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ReportListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ReportListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RepresentationContract.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RepresentationContract.cs index 2c97d08fcc9eb..b33f6cad6dd30 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RepresentationContract.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RepresentationContract.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RequestContract.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RequestContract.cs index 980566253a593..944503edd460f 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RequestContract.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RequestContract.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RequestReportListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RequestReportListResult.cs index ca7aec6e57630..6bc9f29794ddb 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RequestReportListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/RequestReportListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ResponseContract.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ResponseContract.cs index 2428090206804..8b6c6894f4354 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ResponseContract.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ResponseContract.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/SchemaListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/SchemaListResult.cs index f7c96fd957e71..a0d79ff432e02 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/SchemaListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/SchemaListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/SubscriptionListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/SubscriptionListResult.cs index 7971da9d600cd..8fa6f14f88985 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/SubscriptionListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/SubscriptionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TagDescriptionListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TagDescriptionListResult.cs index 7d34369cbec45..d6181210edf8e 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TagDescriptionListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TagDescriptionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TagListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TagListResult.cs index fcc105d5d5417..68473b4340fb9 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TagListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TagListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TagResourceListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TagResourceListResult.cs index 4c0b3d767e834..5e1a0131c7ef3 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TagResourceListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TagResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TenantSettingsListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TenantSettingsListResult.cs index 3555b8b0ba37e..9a6a20d3ac118 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TenantSettingsListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/TenantSettingsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/UserIdentityListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/UserIdentityListResult.cs index c5b947d4f9b00..330556858b367 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/UserIdentityListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/UserIdentityListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models { diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/UserListResult.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/UserListResult.cs index 17087a4809a4b..6e072af9818d3 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/UserListResult.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/UserListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApiManagement; namespace Azure.ResourceManager.ApiManagement.Models diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Internal/ChangeTrackingList.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..eab3ae09e4224 --- /dev/null +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.AppComplianceAutomation +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/Assessment.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/Assessment.cs index 0b69aaa2a04cf..8fa1451184487 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/Assessment.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/Assessment.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppComplianceAutomation; namespace Azure.ResourceManager.AppComplianceAutomation.Models { diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/Category.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/Category.cs index c667077d9e50a..31873bafc0994 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/Category.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/Category.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppComplianceAutomation; namespace Azure.ResourceManager.AppComplianceAutomation.Models { diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ComplianceResult.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ComplianceResult.cs index 94fc20e9b0ed7..09cb00d033e70 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ComplianceResult.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ComplianceResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppComplianceAutomation; namespace Azure.ResourceManager.AppComplianceAutomation.Models { diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/Control.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/Control.cs index 67f41537ad7c2..f1dff5394335b 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/Control.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/Control.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppComplianceAutomation; namespace Azure.ResourceManager.AppComplianceAutomation.Models { diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ControlFamily.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ControlFamily.cs index d1b9b80e9e237..0e41ebc8b67fd 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ControlFamily.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ControlFamily.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppComplianceAutomation; namespace Azure.ResourceManager.AppComplianceAutomation.Models { diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/DownloadResponse.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/DownloadResponse.cs index a86590543235c..aba619bd51b9f 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/DownloadResponse.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/DownloadResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppComplianceAutomation; namespace Azure.ResourceManager.AppComplianceAutomation.Models { diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ReportProperties.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ReportProperties.cs index 0e3c07d1f4fae..b69049a85a9d8 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ReportProperties.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ReportProperties.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.AppComplianceAutomation; namespace Azure.ResourceManager.AppComplianceAutomation.Models { diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ReportResourceList.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ReportResourceList.cs index 9e34ca1f723ca..aeed5876ee8a0 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ReportResourceList.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/ReportResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppComplianceAutomation; namespace Azure.ResourceManager.AppComplianceAutomation.Models diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/SnapshotProperties.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/SnapshotProperties.cs index 110d96ec84211..4dd7cc1bdabc6 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/SnapshotProperties.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/SnapshotProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppComplianceAutomation; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppComplianceAutomation.Models diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/SnapshotResourceList.cs b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/SnapshotResourceList.cs index 243ce95e7e57d..9047b51d3dbdb 100644 --- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/SnapshotResourceList.cs +++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/Generated/Models/SnapshotResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppComplianceAutomation; namespace Azure.ResourceManager.AppComplianceAutomation.Models diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/src/Generated/Internal/ChangeTrackingList.cs b/sdk/appconfiguration/Azure.Data.AppConfiguration/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..1017dab26715f --- /dev/null +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Data.AppConfiguration +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Internal/ChangeTrackingList.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..9fe82a83582d9 --- /dev/null +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.AppConfiguration +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionListResult.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionListResult.cs index 53c86b3547816..700d9f5b4ec69 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionListResult.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppConfiguration; namespace Azure.ResourceManager.AppConfiguration.Models diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkResourceListResult.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkResourceListResult.cs index e4840396ab0be..d3f68fb41decc 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkResourceListResult.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppConfiguration; namespace Azure.ResourceManager.AppConfiguration.Models diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreApiKeyListResult.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreApiKeyListResult.cs index 7dc4e27dbee4f..d204c7a76162c 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreApiKeyListResult.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreApiKeyListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppConfiguration; namespace Azure.ResourceManager.AppConfiguration.Models { diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreListResult.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreListResult.cs index 02589e9456f74..8717bf1185e3c 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreListResult.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/AppConfigurationStoreListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppConfiguration; namespace Azure.ResourceManager.AppConfiguration.Models diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/DeletedConfigurationStoreListResult.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/DeletedConfigurationStoreListResult.cs index a877f628f0304..ea8748fba15fd 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/DeletedConfigurationStoreListResult.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/DeletedConfigurationStoreListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppConfiguration; namespace Azure.ResourceManager.AppConfiguration.Models diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/ReplicaListResult.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/ReplicaListResult.cs index 6bbebea43c033..ad24f5b7a5bec 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/ReplicaListResult.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/Models/ReplicaListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppConfiguration; namespace Azure.ResourceManager.AppConfiguration.Models diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Internal/ChangeTrackingList.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..9494c38c0f27c --- /dev/null +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ApplicationInsights +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/APIKeyContent.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/APIKeyContent.cs index 6c82000885e9e..95ae4187a76b8 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/APIKeyContent.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/APIKeyContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models { diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/AnnotationsListResult.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/AnnotationsListResult.cs index ab8eadbb69d7f..3d9c570785567 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/AnnotationsListResult.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/AnnotationsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models { diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentAPIKey.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentAPIKey.cs index 6f4196a7975c7..f97dc8946301f 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentAPIKey.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentAPIKey.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models { diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentAvailableFeatures.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentAvailableFeatures.cs index 6c27b833461f6..5ec47206b316f 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentAvailableFeatures.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentAvailableFeatures.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models { diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentBillingFeatures.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentBillingFeatures.cs index bd9d9c23a4c4b..121d1897eef37 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentBillingFeatures.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentBillingFeatures.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models { diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentFavorite.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentFavorite.cs index 8e0c334488a6b..8104a82edf96e 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentFavorite.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentFavorite.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models { diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentFeature.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentFeature.cs index 073999e9f0951..e0aa5364ec86d 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentFeature.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentFeature.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models { diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.cs index 44a3c10d02860..12a8cf0f69b7b 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models { diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/MyWorkbooksListResult.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/MyWorkbooksListResult.cs index 2f82bf5d013f4..38ad30e6a9bf1 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/MyWorkbooksListResult.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/MyWorkbooksListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WebTestPropertiesRequest.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WebTestPropertiesRequest.cs index dcba3b8f437d4..60092b5b75b8f 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WebTestPropertiesRequest.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WebTestPropertiesRequest.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models { diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkItemConfigurationsListResult.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkItemConfigurationsListResult.cs index d4bf0b39a7d8a..bac632b1fb254 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkItemConfigurationsListResult.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkItemConfigurationsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models { diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbookPatch.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbookPatch.cs index 6d3976e9effac..820d55a3c8b76 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbookPatch.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbookPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models { diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbookTemplateLocalizedGallery.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbookTemplateLocalizedGallery.cs index 0c1b3b0193d13..e9c1557bf0a7a 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbookTemplateLocalizedGallery.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbookTemplateLocalizedGallery.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models { diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbookTemplatePatch.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbookTemplatePatch.cs index f75d73347ea05..4c614ebe5880d 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbookTemplatePatch.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbookTemplatePatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models { diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbooksListResult.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbooksListResult.cs index d8d3ae032fd59..57e451a26d71c 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbooksListResult.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/WorkbooksListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ApplicationInsights; namespace Azure.ResourceManager.ApplicationInsights.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Internal/ChangeTrackingList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..13b0c9db44e39 --- /dev/null +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.AppPlatform +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ActiveAppPlatformDeploymentsContent.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ActiveAppPlatformDeploymentsContent.cs index ab33ef44532e4..ee92a416030a5 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ActiveAppPlatformDeploymentsContent.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ActiveAppPlatformDeploymentsContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ApiPortalCustomDomainResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ApiPortalCustomDomainResourceList.cs index 4861b60ce1eb1..a950ee36e68e3 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ApiPortalCustomDomainResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ApiPortalCustomDomainResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ApiPortalResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ApiPortalResourceList.cs index c49eb05006347..3892d1304aafc 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ApiPortalResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ApiPortalResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuildList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuildList.cs index c5b40693d85df..033ea7ddc2a37 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuildList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuildList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuildResultList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuildResultList.cs index e59cb720dfda1..9ef536429bc74 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuildResultList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuildResultList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuildServiceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuildServiceList.cs index 501e04ce89fbd..6813b55b28bc3 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuildServiceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuildServiceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuilderResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuilderResourceList.cs index 11b6cd96623aa..9a1fcec4d5fea 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuilderResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppBuilderResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppCustomPersistentDiskProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppCustomPersistentDiskProperties.cs index 720babce65d6c..79486bdf3affa 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppCustomPersistentDiskProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppCustomPersistentDiskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppInstanceExecAction.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppInstanceExecAction.cs index d709de2ac76fb..174e2dccc2579 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppInstanceExecAction.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppInstanceExecAction.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformApiPortalProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformApiPortalProperties.cs index f3ffa80d84856..112d7306ef639 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformApiPortalProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformApiPortalProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformAppProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformAppProperties.cs index a4d8018fb007a..95e61ed79bd42 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformAppProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformAppProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildResultProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildResultProperties.cs index db4e3fca68e5d..02bcb619840a5 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildResultProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuildResultProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuilderProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuilderProperties.cs index 3dff743176de2..24ca8bc9cb910 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuilderProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformBuilderProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformCertificateProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformCertificateProperties.cs index 3e9e871e74842..472824335c3c9 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformCertificateProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformCertificateProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigServerGitProperty.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigServerGitProperty.cs index b47b52c6380ac..6b72e2d1afea4 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigServerGitProperty.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigServerGitProperty.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceGitReposValidationMessages.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceGitReposValidationMessages.cs index 332557f1eed27..3b55846570e37 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceGitReposValidationMessages.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceGitReposValidationMessages.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceGitRepository.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceGitRepository.cs index 1aedd9fa7db39..c703ae670986d 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceGitRepository.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceGitRepository.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceGitValidateResult.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceGitValidateResult.cs index 860ea01098c1f..973896b91faf3 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceGitValidateResult.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceGitValidateResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceProperties.cs index 6e52b9cf4d0e3..ff378945dd612 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformConfigurationServiceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformCustomContainer.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformCustomContainer.cs index c9df85f797eff..50a192c6f7c53 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformCustomContainer.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformCustomContainer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformDeploymentProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformDeploymentProperties.cs index deac8ced1e86f..a2551609d92f8 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformDeploymentProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformDeploymentProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayApiRoute.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayApiRoute.cs index aae7937e60d2d..079dee3cd3d33 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayApiRoute.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayApiRoute.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayCorsProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayCorsProperties.cs index 5eeccb537a16d..6dc700739086f 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayCorsProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayCorsProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayOperatorProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayOperatorProperties.cs index e153bea20ad52..094bdde483fd0 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayOperatorProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayOperatorProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayProperties.cs index 32b9f198504bc..97d8c6589f82c 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayRouteConfigProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayRouteConfigProperties.cs index 5dea3e1414896..e4f3cd5d390f6 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayRouteConfigProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformGatewayRouteConfigProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceNetworkProfile.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceNetworkProfile.cs index 56cfb5f805c50..4e14462759f90 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceNetworkProfile.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceNetworkProfile.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Net; using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceRegistryProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceRegistryProperties.cs index 0c31c8e02ed98..66a5de93605dd 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceRegistryProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceRegistryProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceRequiredTraffic.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceRequiredTraffic.cs index 65023ec66977c..39dee17542612 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceRequiredTraffic.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformServiceRequiredTraffic.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuLocationInfo.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuLocationInfo.cs index 3b3b08727f94e..6179a2d25c934 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuLocationInfo.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuLocationInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuRestrictionInfo.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuRestrictionInfo.cs index 6a79da3b4fa42..63f084200ff53 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuRestrictionInfo.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuRestrictionInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuRestrictions.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuRestrictions.cs index 41538fd07285d..2ef686c8d0484 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuRestrictions.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuRestrictions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuZoneDetails.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuZoneDetails.cs index 9b96df30af327..d6058197297e1 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuZoneDetails.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSkuZoneDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSsoProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSsoProperties.cs index 51905391f099e..3a3e17f8b4046 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSsoProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformSsoProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppResourceList.cs index 46cff2edce554..b6caed1c84b8a 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AvailableAppPlatformSku.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AvailableAppPlatformSku.cs index f29be4dc6168f..ba8b475b31408 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AvailableAppPlatformSku.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AvailableAppPlatformSku.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AvailableRuntimeVersions.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AvailableRuntimeVersions.cs index 5a34715f19385..b7b0ddbe33b26 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AvailableRuntimeVersions.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AvailableRuntimeVersions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BindingResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BindingResourceList.cs index 02cf0d3ec2444..aea843bb1cace 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BindingResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BindingResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BuildServiceAgentPoolResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BuildServiceAgentPoolResourceList.cs index 34679213d0f3d..3dce92e618cfc 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BuildServiceAgentPoolResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BuildServiceAgentPoolResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BuildpackBindingResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BuildpackBindingResourceList.cs index 3e5ada46bc211..84ed8fa763a92 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BuildpackBindingResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BuildpackBindingResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BuildpacksGroupProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BuildpacksGroupProperties.cs index 11e86d34d97e6..6ddc29545fd01 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BuildpacksGroupProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/BuildpacksGroupProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/CertificateResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/CertificateResourceList.cs index b82ebf583aeed..ae45afc367cc5 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/CertificateResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/CertificateResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigServerGitPatternRepository.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigServerGitPatternRepository.cs index 3fbfb7b1e0726..57ffade15b787 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigServerGitPatternRepository.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigServerGitPatternRepository.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigServerSettingsErrorRecord.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigServerSettingsErrorRecord.cs index e68d99c386f63..c1d82320a8c3f 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigServerSettingsErrorRecord.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigServerSettingsErrorRecord.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigServerSettingsValidateResult.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigServerSettingsValidateResult.cs index 69a296b669b9c..9096aacc9332d 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigServerSettingsValidateResult.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigServerSettingsValidateResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigurationServiceGitProperty.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigurationServiceGitProperty.cs index 9a3035ee5d878..cef8fc356a2c0 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigurationServiceGitProperty.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigurationServiceGitProperty.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigurationServiceResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigurationServiceResourceList.cs index 0ed8d63c79c9c..bcc2328f99c3d 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigurationServiceResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ConfigurationServiceResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/CustomDomainResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/CustomDomainResourceList.cs index 7c8dfdb10588c..3ff608c779669 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/CustomDomainResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/CustomDomainResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/DeploymentList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/DeploymentList.cs index ebeae82560dec..c70a3b2a751fe 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/DeploymentList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/DeploymentList.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/DeploymentResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/DeploymentResourceList.cs index b8fe9d112c755..9f67c5910efd2 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/DeploymentResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/DeploymentResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/GatewayCustomDomainResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/GatewayCustomDomainResourceList.cs index b894a055f34da..9bc25555acda9 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/GatewayCustomDomainResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/GatewayCustomDomainResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/GatewayResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/GatewayResourceList.cs index 0aab6e9ccbd92..189f1a6734f60 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/GatewayResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/GatewayResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/GatewayRouteConfigResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/GatewayRouteConfigResourceList.cs index 18a0fabf95d93..023dbf59682f4 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/GatewayRouteConfigResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/GatewayRouteConfigResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/IngressSettingsClientAuth.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/IngressSettingsClientAuth.cs index dee08a8865def..30190a2d988e7 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/IngressSettingsClientAuth.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/IngressSettingsClientAuth.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/NetworkProfileOutboundIPs.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/NetworkProfileOutboundIPs.cs index b58adfd7c794b..6c6b82fc13e2e 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/NetworkProfileOutboundIPs.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/NetworkProfileOutboundIPs.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ResourceSkuList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ResourceSkuList.cs index 25eda4ffe7d8f..3e19bf1019018 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ResourceSkuList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ResourceSkuList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models { diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ServiceRegistryResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ServiceRegistryResourceList.cs index 8e1ee60b79dbf..e5534cfd28dbc 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ServiceRegistryResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ServiceRegistryResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ServiceResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ServiceResourceList.cs index 390f52ba6ae8b..348b569200132 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ServiceResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/ServiceResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/StorageResourceList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/StorageResourceList.cs index 5448fe52d5bbe..08e5784fbb381 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/StorageResourceList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/StorageResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/SupportedBuildpacksList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/SupportedBuildpacksList.cs index eb68fafb7b252..63848f15e649b 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/SupportedBuildpacksList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/SupportedBuildpacksList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/SupportedStacksList.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/SupportedStacksList.cs index eeae2813d56a5..8c9d760f445ef 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/SupportedStacksList.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/SupportedStacksList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppPlatform; namespace Azure.ResourceManager.AppPlatform.Models diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Internal/ChangeTrackingList.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..7bcf9ab55f1a9 --- /dev/null +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ArcScVmm +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/AvailabilitySetListResult.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/AvailabilitySetListResult.cs index abd1482dd628e..f9423af8fe635 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/AvailabilitySetListResult.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/AvailabilitySetListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ArcScVmm; namespace Azure.ResourceManager.ArcScVmm.Models diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/CloudListResult.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/CloudListResult.cs index 94b38201b4b57..2c377ed2aa570 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/CloudListResult.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/CloudListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ArcScVmm; namespace Azure.ResourceManager.ArcScVmm.Models diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/NetworkInterfaces.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/NetworkInterfaces.cs index 13fe66055f30e..4ef334f19a826 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/NetworkInterfaces.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/NetworkInterfaces.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ArcScVmm; namespace Azure.ResourceManager.ArcScVmm.Models { diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/NetworkProfile.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/NetworkProfile.cs index 5bf0539d008aa..c3ddf890d27c0 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/NetworkProfile.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/NetworkProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ArcScVmm; namespace Azure.ResourceManager.ArcScVmm.Models { diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/NetworkProfileUpdate.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/NetworkProfileUpdate.cs index 494a1846c66bb..fb2d6c96f13fe 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/NetworkProfileUpdate.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/NetworkProfileUpdate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ArcScVmm; namespace Azure.ResourceManager.ArcScVmm.Models { diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/StorageProfile.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/StorageProfile.cs index 81363e654521c..52173be052237 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/StorageProfile.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/StorageProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ArcScVmm; namespace Azure.ResourceManager.ArcScVmm.Models { diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/StorageProfileUpdate.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/StorageProfileUpdate.cs index 0a3a5d123b634..902152a21bfdb 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/StorageProfileUpdate.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/StorageProfileUpdate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ArcScVmm; namespace Azure.ResourceManager.ArcScVmm.Models { diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineInventoryItem.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineInventoryItem.cs index ae674c3af2733..6462045989c6b 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineInventoryItem.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineInventoryItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ArcScVmm; namespace Azure.ResourceManager.ArcScVmm.Models { diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineListResult.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineListResult.cs index b88acad57efaf..c86ec42fa770f 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineListResult.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ArcScVmm; namespace Azure.ResourceManager.ArcScVmm.Models diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineTemplateListResult.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineTemplateListResult.cs index 5fe58a54c561a..b9120b7ba5de3 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineTemplateListResult.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineTemplateListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ArcScVmm; namespace Azure.ResourceManager.ArcScVmm.Models diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineUpdateProperties.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineUpdateProperties.cs index 64735bb0adce9..52543227973e4 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineUpdateProperties.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualMachineUpdateProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ArcScVmm; namespace Azure.ResourceManager.ArcScVmm.Models { diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualNetworkListResult.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualNetworkListResult.cs index 5390aeafa9341..49c0a7a121523 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualNetworkListResult.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VirtualNetworkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ArcScVmm; namespace Azure.ResourceManager.ArcScVmm.Models diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VmmServerListResult.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VmmServerListResult.cs index 92a27ab01d97f..6ab9f4bbefaca 100644 --- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VmmServerListResult.cs +++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/Models/VmmServerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ArcScVmm; namespace Azure.ResourceManager.ArcScVmm.Models diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Internal/ChangeTrackingList.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..83bb4835a6e88 --- /dev/null +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Attestation +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateEndpointConnectionListResult.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateEndpointConnectionListResult.cs index df6e15b74e54c..2d564497536fa 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateEndpointConnectionListResult.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Attestation; namespace Azure.ResourceManager.Attestation.Models diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateLinkResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateLinkResource.cs index c9efa34cb66fa..1e1bbcff12e42 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateLinkResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateLinkResource.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Attestation; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Attestation.Models diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateLinkResourceListResult.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateLinkResourceListResult.cs index e26698df8c8f2..724d63c05e3ce 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateLinkResourceListResult.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationPrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Attestation; namespace Azure.ResourceManager.Attestation.Models { diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderListResult.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderListResult.cs index 23dd9dce200f9..0084e18ba8986 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderListResult.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Attestation; using Azure.ResourceManager.Models; diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/JsonWebKey.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/JsonWebKey.cs index 6fa7cb07f4929..02bd791f88955 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/JsonWebKey.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/JsonWebKey.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Attestation; namespace Azure.ResourceManager.Attestation.Models { diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/JsonWebKeySet.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/JsonWebKeySet.cs index f3913e9e87002..3e1d229412183 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/JsonWebKeySet.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/JsonWebKeySet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Attestation; namespace Azure.ResourceManager.Attestation.Models { diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Internal/ChangeTrackingList.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..8c8bd8478f74f --- /dev/null +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Security.Attestation +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKey.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKey.cs index 943df1c53a927..6588c28656d43 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKey.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKey.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Security.Attestation { diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKeySet.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKeySet.Serialization.cs index a3d0aa64f58a2..c170420c14cbb 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKeySet.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKeySet.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Security.Attestation { diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKeySet.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKeySet.cs index 1df5d32d63d1b..ed2fa6077d4e0 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKeySet.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKeySet.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Security.Attestation { diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Internal/ChangeTrackingList.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..3e6a87d9d7a7a --- /dev/null +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Authorization +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationClassicAdministratorListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationClassicAdministratorListResult.cs index 7cc420621e723..e4a33fbe183ce 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationClassicAdministratorListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationClassicAdministratorListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models { diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderOperationsMetadataListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderOperationsMetadataListResult.cs index fec1e7eb5a86a..d3383009f10d4 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderOperationsMetadataListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderOperationsMetadataListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderResourceType.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderResourceType.cs index 3c80dfca5fe1f..e4342eac9cd4e 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderResourceType.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderResourceType.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models { diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/DenyAssignmentListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/DenyAssignmentListResult.cs index ff0ac70ffbd36..cf80c58a527b2 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/DenyAssignmentListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/DenyAssignmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/DenyAssignmentPermission.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/DenyAssignmentPermission.cs index 2920ed9180490..6c01673bcbd77 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/DenyAssignmentPermission.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/DenyAssignmentPermission.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models { diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/EligibleChildResourcesListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/EligibleChildResourcesListResult.cs index b1a238afcc991..291e5e42a6e77 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/EligibleChildResourcesListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/EligibleChildResourcesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models { diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentListResult.cs index be54037d013e5..f62526d5c6203 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleInstanceListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleInstanceListResult.cs index ffd417572d033..12c408b1bb8be 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleInstanceListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleInstanceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleListResult.cs index 187d1d124ddb5..9db519c4d76ae 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleRequestListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleRequestListResult.cs index 59236d260ac5e..12d40007e418c 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleRequestListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleAssignmentScheduleRequestListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleDefinitionListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleDefinitionListResult.cs index 5aedbaa07cf51..cdebae71b1859 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleDefinitionListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleDefinitionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleDefinitionPermission.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleDefinitionPermission.cs index 1b33a9b67d5fc..9cc6fc232db70 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleDefinitionPermission.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleDefinitionPermission.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models { diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleDefinitionPermissionListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleDefinitionPermissionListResult.cs index 80ad55df45125..903c549ebf1ab 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleDefinitionPermissionListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleDefinitionPermissionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models { diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleInstanceListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleInstanceListResult.cs index 174ad939bbc98..34a6f7e0adb6d 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleInstanceListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleInstanceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleListResult.cs index bf2a3d928f078..687917666ffbc 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleRequestListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleRequestListResult.cs index 5781d3c538a8f..b3b1b807f1e0e 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleRequestListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleEligibilityScheduleRequestListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementApprovalSettings.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementApprovalSettings.cs index 1f51f32387720..6b77403c16802 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementApprovalSettings.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementApprovalSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models { diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementApprovalStage.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementApprovalStage.cs index 0d5c9f3115a92..1a9763de0526e 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementApprovalStage.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementApprovalStage.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models { diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyAssignmentListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyAssignmentListResult.cs index c531f6693efe2..028c03d4dbc07 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyAssignmentListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyAssignmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyEnablementRule.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyEnablementRule.cs index 392b709b109b0..9bc376cd511a6 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyEnablementRule.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyEnablementRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models { diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyListResult.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyListResult.cs index 043111c04c511..cb403bf685eb1 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyListResult.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyNotificationRule.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyNotificationRule.cs index e906eee3f2d97..b255d6f07ec7f 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyNotificationRule.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyNotificationRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models { diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyRuleTarget.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyRuleTarget.cs index 982fc6a7e870c..36be8331d5ddf 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyRuleTarget.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/RoleManagementPolicyRuleTarget.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Authorization; namespace Azure.ResourceManager.Authorization.Models { diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Internal/ChangeTrackingList.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..0a63fe5aa28c6 --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Automanage +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeList.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeList.cs index 04b169f8cab8c..802043f0171c4 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeList.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automanage; namespace Azure.ResourceManager.Automanage.Models diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentList.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentList.cs index 5882c6f893cc9..5e2e4942bc804 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentList.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automanage; namespace Azure.ResourceManager.Automanage.Models diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileList.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileList.cs index f412b933adba4..7830fd25ce4d3 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileList.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automanage; namespace Azure.ResourceManager.Automanage.Models diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ReportList.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ReportList.cs index e9a59b285ad9c..7df4291cde304 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ReportList.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ReportList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automanage; namespace Azure.ResourceManager.Automanage.Models diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalListResult.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalListResult.cs index c75b12876d9c7..e56a8a88c0444 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalListResult.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automanage; namespace Azure.ResourceManager.Automanage.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Internal/ChangeTrackingList.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..05b1918bb5ac3 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Automation +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountListResult.cs index bbbe629e2bd43..6befab7b90b3f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatisticsListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatisticsListResult.cs index 1ed9b8e050225..4d513301e7c5f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatisticsListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatisticsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivity.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivity.cs index 948c733e8aa55..3a09c1ca5333b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivity.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivity.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityListResult.cs index 2a53dc5d2d67c..f15e22d1fa56a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterDefinition.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterDefinition.cs index b2301a5d8a6d1..dc3c8c73b57ce 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterDefinition.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterDefinition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterSet.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterSet.cs index d16e01d07b9de..0a41dcca1ed3f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterSet.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedSchedule.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedSchedule.cs index 0541eafd7f183..ba3443c2592df 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedSchedule.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedSchedule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateListResult.cs index 7e71d09ac1067..d3fa7ecebcdf3 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionListResult.cs index 225395cf46cd7..1ce26dcc70867 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeListResult.cs index bc1db19e965c4..dd978e6a84ace 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialListResult.cs index d3d3839a956d6..6e73d960d3c78 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobListResultV2.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobListResultV2.cs index 655cb4638228f..ba46d40ab629b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobListResultV2.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobListResultV2.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleListResult.cs index 209d91d1bd2ee..6c9ab5e75fdc4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStreamListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStreamListResult.cs index 8e28ace6b6c23..ed5428c4a2283 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStreamListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStreamListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyListResult.cs index 511cb7ab42468..2ab050507c661 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleFieldListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleFieldListResult.cs index 12dfe67512341..3956047d64caa 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleFieldListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleFieldListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleListResult.cs index b2ba483b257eb..2e04d472a14f0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateEndpointConnectionListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateEndpointConnectionListResult.cs index 45f7af51a1cad..46d8a27f95ef4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateEndpointConnectionListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateLinkResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateLinkResource.cs index aeba83cd1fba9..8144bb10a8b81 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateLinkResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateLinkResource.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Automation; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateLinkResourceListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateLinkResourceListResult.cs index f74d1c81efe28..1c8654e9cd89d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateLinkResourceListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationPrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookDraft.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookDraft.cs index 7f6b1557888b8..be6519ccc1a77 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookDraft.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookDraft.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookListResult.cs index 07b6a873b0f20..7e813a2eb4034 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleListResult.cs index 72e241fa201b7..20733cafe1183 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlListResult.cs index 308451d5877d0..f1e6fdf6280d9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageListResult.cs index bcae7fdaff7df..d51a632398f13 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableListResult.cs index 1947e80b752dd..6eef7fee6ac16 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherListResult.cs index 75fff287eb248..fb3d305a1f301 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookListResult.cs index 8feac381dcbae..e004227aa6b5a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AzureQueryProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AzureQueryProperties.cs index 10153df5dca69..d4013e8a9271b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AzureQueryProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AzureQueryProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedAutomationAccountListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedAutomationAccountListResult.cs index f13ed793959a5..c2994aca2d6b9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedAutomationAccountListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedAutomationAccountListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobListResult.cs index 34cff157c3124..56fbc963722c3 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationListResult.cs index 7ad8e719fecf8..52f040b23c367 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationListResult.cs index 1ba923db02932..cc520441d63a9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountListResult.cs index 4eeb95fc4258e..459d19c51766e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeListResult.cs index c1107b011a196..7d54fcfbbeb16 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeReport.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeReport.cs index b6c34096b7999..4cf92d8acbc08 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeReport.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeReport.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeReportListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeReportListResult.cs index f96ed597787a5..d7e6e8a38762f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeReportListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeReportListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscReportResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscReportResource.cs index 426227d3e3336..a75d6ff400e83 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscReportResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscReportResource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupsListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupsListResult.cs index bc643f52057ca..5beaf93cd4719 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupsListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkersListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkersListResult.cs index 3c84077d9f228..b0850cc394786 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkersListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkersListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateConfigurationProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateConfigurationProperties.cs index e53c5c5b1a63d..7fa3607384b21 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateConfigurationProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateConfigurationProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationListResult.cs index dc872506aa09a..06831d0763df9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationMachineRunListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationMachineRunListResult.cs index ff28400d010e6..65a2a991eacfd 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationMachineRunListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationMachineRunListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRunListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRunListResult.cs index 5e2ee5037aca2..9f4e1f73a87d0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRunListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRunListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationSpecificProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationSpecificProperties.cs index 4bf23ffc3e312..ab5fea651b078 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationSpecificProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationSpecificProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTargetProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTargetProperties.cs index 99a562633670a..ee1ea0a219fb3 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTargetProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTargetProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobListResult.cs index 3b7d2e8c3d9af..fe9c3efd3bd1a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamListResult.cs index d8f21f8e8e1e3..2acbbc7d1c598 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateConfigurationProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateConfigurationProperties.cs index f2be8cb20dff3..005d34720c94e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateConfigurationProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateConfigurationProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Automation; namespace Azure.ResourceManager.Automation.Models { diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Internal/ChangeTrackingList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..bb33d13661ab5 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Avs +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonList.cs index 4806b8a90046e..4c12c0cf6d952 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsClusterZone.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsClusterZone.cs index 35a3585a5c5a8..2993d4f40d258 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsClusterZone.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsClusterZone.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models { diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterPatch.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterPatch.cs index 481e519dc07fc..39485e2c38b14 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterPatch.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models { diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudPatch.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudPatch.cs index 4cf7b378bc180..a08393290d6d9 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudPatch.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Avs; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CloudLinkList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CloudLinkList.cs index 244d3850042bb..0ac0e955f8fe5 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CloudLinkList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CloudLinkList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterList.cs index fbcb93f2e63aa..6df816d292b14 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterZoneList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterZoneList.cs index 59c0e7eeba162..038735a8f55d6 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterZoneList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterZoneList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models { diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.cs index db852fa886da5..5d6467578f86b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models { diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreList.cs index 818ebdc5355f0..cc1967ad4d54a 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationList.cs index 1a497f7714609..0cc98aff7bada 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionList.cs index 987a9b4bd3b0a..28320d909d94f 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteList.cs index 6993895f913d7..29580bc26d951 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPoliciesList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPoliciesList.cs index 5f91221fb1292..826e92b5e5984 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPoliciesList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPoliciesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyPatch.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyPatch.cs index 9845898b43d3b..3d26830973b4e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyPatch.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models { diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PrivateCloudList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PrivateCloudList.cs index 644c34ca179b0..b5f03f0251a49 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PrivateCloudList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PrivateCloudList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletsList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletsList.cs index be9be4b3fc63b..4dbe7b53e21c7 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletsList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionsList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionsList.cs index 481af0660a84c..a92597b8bbbbe 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionsList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackagesList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackagesList.cs index 82cc36c78fc77..c14c633e5fd70 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackagesList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackagesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachinesList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachinesList.cs index f9aa0c5c5b284..eec86ed9a21b9 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachinesList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachinesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpEntity.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpEntity.cs index 9bc2b6bbcff6d..97c624dcf2347 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpEntity.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpEntity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models { diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpList.cs index dd956e076806c..e30bc6196b0a0 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpRelay.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpRelay.cs index 3977fc01d84b9..9fed121e94ac8 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpRelay.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpRelay.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models { diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServicesList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServicesList.cs index 51baf3e12e545..d8abbb3b2bd1e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServicesList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServicesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZonesList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZonesList.cs index 3b10c4dd65037..b37f3d85b1e60 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZonesList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZonesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayList.cs index 7098844143ffe..a56d05ed9bc7b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkList.cs index a30808de7fe64..589c253ed206e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringList.cs index e0caca633a289..048bd69f447d9 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPsList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPsList.cs index 2c2f4938ca8ce..4574ae7732b3c 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPsList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentSubnet.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentSubnet.cs index b5b8c8423f15a..18a9b357f16cc 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentSubnet.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentSubnet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models { diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentsList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentsList.cs index 7b9d86d197d6f..c0e950bbdc272 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentsList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachinesList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachinesList.cs index 7534d19304926..b6797750959d1 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachinesList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachinesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupsList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupsList.cs index 01a379410b652..baf7a067475d3 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupsList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Avs; namespace Azure.ResourceManager.Avs.Models diff --git a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Internal/ChangeTrackingList.cs b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..16b32b378b220 --- /dev/null +++ b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.LargeInstance +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceNetworkProfile.cs b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceNetworkProfile.cs index 7ee4d1ea27b68..d345b431b82cb 100644 --- a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceNetworkProfile.cs +++ b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceNetworkProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.LargeInstance; namespace Azure.ResourceManager.LargeInstance.Models { diff --git a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceOperationStatusResult.cs b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceOperationStatusResult.cs index 3def4c3cb8088..577cc619cc01a 100644 --- a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceOperationStatusResult.cs +++ b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceOperationStatusResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.LargeInstance; namespace Azure.ResourceManager.LargeInstance.Models { diff --git a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceStorageProfile.cs b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceStorageProfile.cs index d9e15e63edf10..8a98f7aa82a34 100644 --- a/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceStorageProfile.cs +++ b/sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/src/Generated/Models/LargeInstanceStorageProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.LargeInstance; namespace Azure.ResourceManager.LargeInstance.Models { diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Internal/ChangeTrackingList.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..62058a870174f --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Hci +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/ArcExtensionListResult.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/ArcExtensionListResult.cs index 616b655b42724..4d49618acb2da 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/ArcExtensionListResult.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/ArcExtensionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/ArcSettingList.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/ArcSettingList.cs index cdbb825d8af0e..015b8134d5fe4 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/ArcSettingList.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/ArcSettingList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/GalleryImagesListResult.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/GalleryImagesListResult.cs index 6740786fc94b1..dda7c23965df9 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/GalleryImagesListResult.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/GalleryImagesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/GuestAgentInstallStatus.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/GuestAgentInstallStatus.cs index 2d09f64f272cf..46b12b54b38c8 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/GuestAgentInstallStatus.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/GuestAgentInstallStatus.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models { diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterListResult.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterListResult.cs index 3d9f5f13c7c42..76f0bb4d01a4f 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterListResult.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterRawCertificate.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterRawCertificate.cs index 195f58c0f5c46..44210ac17a0c8 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterRawCertificate.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterRawCertificate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models { diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterReportedProperties.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterReportedProperties.cs index cedb785483500..f9a38052cbe39 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterReportedProperties.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterReportedProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models { diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciOfferList.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciOfferList.cs index 72f89614a4835..a97d3ac9bdaa4 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciOfferList.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciOfferList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciPublisherList.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciPublisherList.cs index aee408b68b61f..c46da1a2b7505 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciPublisherList.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciPublisherList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciSkuList.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciSkuList.cs index 9c2f84874079b..1546e60fce315 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciSkuList.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciSkuList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciSkuMappings.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciSkuMappings.cs index 865990ff65f81..5cbba14eab563 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciSkuMappings.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciSkuMappings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models { diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciUpdateList.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciUpdateList.cs index 0bd03b9cbacc3..46ed85ef9686d 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciUpdateList.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciUpdateList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciUpdateStep.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciUpdateStep.cs index e555c5c1b55b4..73e1cfd7058f7 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciUpdateStep.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciUpdateStep.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models { diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HttpProxyConfiguration.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HttpProxyConfiguration.cs index 0fb832dfe9d9c..71ab780ddcc0d 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HttpProxyConfiguration.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HttpProxyConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models { diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/InterfaceDnsSettings.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/InterfaceDnsSettings.cs index 90e33dda7f12c..480165a459ad1 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/InterfaceDnsSettings.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/InterfaceDnsSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models { diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/LogicalNetworkPropertiesDhcpOptions.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/LogicalNetworkPropertiesDhcpOptions.cs index 66f884940a6bc..53ba52cad64bf 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/LogicalNetworkPropertiesDhcpOptions.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/LogicalNetworkPropertiesDhcpOptions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models { diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/LogicalNetworksListResult.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/LogicalNetworksListResult.cs index 5b474971b5a79..d2d8a17bc9be4 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/LogicalNetworksListResult.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/LogicalNetworksListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/MarketplaceGalleryImagesListResult.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/MarketplaceGalleryImagesListResult.cs index 99370713342c0..02748920cce68 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/MarketplaceGalleryImagesListResult.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/MarketplaceGalleryImagesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/NetworkInterfacesListResult.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/NetworkInterfacesListResult.cs index ffd40120c2f7e..61ae1e8dcb096 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/NetworkInterfacesListResult.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/NetworkInterfacesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/NetworkProfileUpdate.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/NetworkProfileUpdate.cs index 777df49c9e5ae..3c72f8c2a7092 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/NetworkProfileUpdate.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/NetworkProfileUpdate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Hci; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/RouteTable.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/RouteTable.cs index 81bb9e1ed1db8..a96d91a7147bf 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/RouteTable.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/RouteTable.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models { diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/SshConfiguration.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/SshConfiguration.cs index 8655f4015be20..60d3886e1465c 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/SshConfiguration.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/SshConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models { diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/StorageContainersListResult.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/StorageContainersListResult.cs index c281a7cbabd23..a8dfa3fe664de 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/StorageContainersListResult.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/StorageContainersListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/StorageProfileUpdate.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/StorageProfileUpdate.cs index 7fcdde94cd328..2884140d5beff 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/StorageProfileUpdate.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/StorageProfileUpdate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Hci; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/Subnet.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/Subnet.cs index 52cafe608f35c..f1d24317a89cf 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/Subnet.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/Subnet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Hci; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateRunList.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateRunList.cs index d9e406cfcb260..4d5c4d3bf5f42 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateRunList.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateRunList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateSummariesList.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateSummariesList.cs index 2544149b7db9a..ca4ebeb54b7c2 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateSummariesList.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/UpdateSummariesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualHardDisksListResult.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualHardDisksListResult.cs index 7b476528714ce..ab1feabdc5b0d 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualHardDisksListResult.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualHardDisksListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineConfigAgentInstanceView.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineConfigAgentInstanceView.cs index 94e61fc43ca9b..a52b633f4a664 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineConfigAgentInstanceView.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineConfigAgentInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models { diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstanceListResult.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstanceListResult.cs index 78358bb527819..37f2ac22fd654 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstanceListResult.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstanceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Hci; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstancePropertiesNetworkProfile.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstancePropertiesNetworkProfile.cs index d97cc24ab7e6b..d043caa295033 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstancePropertiesNetworkProfile.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstancePropertiesNetworkProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Hci; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstancePropertiesStorageProfile.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstancePropertiesStorageProfile.cs index a5ae2e33757ac..468bbd783f453 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstancePropertiesStorageProfile.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/VirtualMachineInstancePropertiesStorageProfile.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Hci; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Hci.Models diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Internal/ChangeTrackingList.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..4cc9691af9207 --- /dev/null +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Batch +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountCreateOrUpdateContent.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountCreateOrUpdateContent.cs index 70b121dc09d6a..ab52e58ed81e6 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountCreateOrUpdateContent.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountCreateOrUpdateContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Batch; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Batch.Models diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountEndpointDependency.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountEndpointDependency.cs index ca72d4dec6561..c83d73fc383e8 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountEndpointDependency.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountEndpointDependency.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models { diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountListResult.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountListResult.cs index 3f113951a3d95..656b569195af1 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountListResult.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountOutboundEnvironmentEndpoint.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountOutboundEnvironmentEndpoint.cs index ec23397611ffb..321cd298f9c9e 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountOutboundEnvironmentEndpoint.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountOutboundEnvironmentEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models { diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPatch.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPatch.cs index 4762c3518bca8..6120f82c4cdf9 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPatch.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Batch; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Batch.Models diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolStartTask.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolStartTask.cs index d2cb17139b014..9f14d9c0cf39a 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolStartTask.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchAccountPoolStartTask.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models { diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateReference.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateReference.cs index 2a405055ad05e..307afb040904c 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateReference.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchCertificateReference.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models { diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchEndpointAccessProfile.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchEndpointAccessProfile.cs index 580d1fd4fd70c..40bdca8f2561f 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchEndpointAccessProfile.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchEndpointAccessProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models { diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchInboundNatPool.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchInboundNatPool.cs index 5ba042abd25dc..1cbc9089379ec 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchInboundNatPool.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchInboundNatPool.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models { diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkSecurityGroupRule.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkSecurityGroupRule.cs index 3f80af0918fbb..ef739f8eaf1b6 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkSecurityGroupRule.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchNetworkSecurityGroupRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models { diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPublicIPAddressConfiguration.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPublicIPAddressConfiguration.cs index e1dca2f0df24a..b075fcd077b0f 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPublicIPAddressConfiguration.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchPublicIPAddressConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models { diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchResizeOperationStatus.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchResizeOperationStatus.cs index 352e7ab3f717c..59f0544b8fbb7 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchResizeOperationStatus.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchResizeOperationStatus.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models { diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchSupportedSku.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchSupportedSku.cs index 88b5214d9c1d5..954a3e2da5b36 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchSupportedSku.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchSupportedSku.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models { diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchVmConfiguration.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchVmConfiguration.cs index 1ff26f841c56d..e54213b84a8c9 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchVmConfiguration.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchVmConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Batch; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Batch.Models diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchVmContainerConfiguration.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchVmContainerConfiguration.cs index 0b3caa5d4504d..2058a1f7b0865 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchVmContainerConfiguration.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchVmContainerConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models { diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchVmExtension.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchVmExtension.cs index 8cc20ad21c80e..cb6a685ac9f17 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchVmExtension.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/BatchVmExtension.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models { diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/DetectorListResult.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/DetectorListResult.cs index 45c4d2e310352..dd15bf35f6028 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/DetectorListResult.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/DetectorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/DiskEncryptionConfiguration.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/DiskEncryptionConfiguration.cs index 3ffbf34f54147..67152521c6c93 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/DiskEncryptionConfiguration.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/DiskEncryptionConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models { diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListApplicationPackagesResult.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListApplicationPackagesResult.cs index 75533321c90ed..155bba8e64fd2 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListApplicationPackagesResult.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListApplicationPackagesResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListApplicationsResult.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListApplicationsResult.cs index 7a329236b5c81..23d8e7c07164d 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListApplicationsResult.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListApplicationsResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListCertificatesResult.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListCertificatesResult.cs index 0249f4b14f6c8..aaf28d35d0227 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListCertificatesResult.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListCertificatesResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListPoolsResult.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListPoolsResult.cs index 07c262fbda00d..d47e4df65835f 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListPoolsResult.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListPoolsResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListPrivateEndpointConnectionsResult.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListPrivateEndpointConnectionsResult.cs index 4bce5d4425040..dcff7d8b5f1df 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListPrivateEndpointConnectionsResult.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListPrivateEndpointConnectionsResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListPrivateLinkResourcesResult.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListPrivateLinkResourcesResult.cs index bb19eed4d4f53..67eccb3ee9212 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListPrivateLinkResourcesResult.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/ListPrivateLinkResourcesResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models diff --git a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/OutboundEnvironmentEndpointCollection.cs b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/OutboundEnvironmentEndpointCollection.cs index 9ad0d54757f0f..6081504afd700 100644 --- a/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/OutboundEnvironmentEndpointCollection.cs +++ b/sdk/batch/Azure.ResourceManager.Batch/src/Generated/Models/OutboundEnvironmentEndpointCollection.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Batch; namespace Azure.ResourceManager.Batch.Models { diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Internal/ChangeTrackingList.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..ab0084b8b1c43 --- /dev/null +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Billing +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingSubscriptionAliasListResult.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingSubscriptionAliasListResult.cs index 17e90936e1a76..68c585b7810a3 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingSubscriptionAliasListResult.cs +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingSubscriptionAliasListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Billing; namespace Azure.ResourceManager.Billing.Models diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingSubscriptionsListResult.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingSubscriptionsListResult.cs index b617e23a36990..94758e05d95e6 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingSubscriptionsListResult.cs +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/BillingSubscriptionsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Billing; namespace Azure.ResourceManager.Billing.Models diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/PaymentMethodLinksListResult.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/PaymentMethodLinksListResult.cs index 9eebcfcb009d9..afa67e263e5e3 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/PaymentMethodLinksListResult.cs +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/PaymentMethodLinksListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Billing; namespace Azure.ResourceManager.Billing.Models diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/PaymentMethodProjectionProperties.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/PaymentMethodProjectionProperties.cs index 6f46e66a9d02c..c1acc2db2fdf0 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/PaymentMethodProjectionProperties.cs +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/PaymentMethodProjectionProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Billing; namespace Azure.ResourceManager.Billing.Models { diff --git a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/PaymentMethodsListResult.cs b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/PaymentMethodsListResult.cs index 0003bdda2368d..c0e8fe7e0b1f6 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/PaymentMethodsListResult.cs +++ b/sdk/billing/Azure.ResourceManager.Billing/src/Generated/Models/PaymentMethodsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Billing; namespace Azure.ResourceManager.Billing.Models diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Internal/ChangeTrackingList.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..cf5bdf84c95e4 --- /dev/null +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.BillingBenefits +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsSavingsPlanUtilization.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsSavingsPlanUtilization.cs index 09c86d170a5c8..a9a904bf080e4 100644 --- a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsSavingsPlanUtilization.cs +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingBenefitsSavingsPlanUtilization.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.BillingBenefits; namespace Azure.ResourceManager.BillingBenefits.Models { diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingPlanInformation.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingPlanInformation.cs index 1a2d047d9116c..28a2425fe68ea 100644 --- a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingPlanInformation.cs +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/BillingPlanInformation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.BillingBenefits; namespace Azure.ResourceManager.BillingBenefits.Models { diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanModelList.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanModelList.cs index 41f80cae139ef..2d34d5c5bdfe1 100644 --- a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanModelList.cs +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanModelList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.BillingBenefits; namespace Azure.ResourceManager.BillingBenefits.Models diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanModelListResult.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanModelListResult.cs index c403b861db21f..b808629051613 100644 --- a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanModelListResult.cs +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanModelListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.BillingBenefits; namespace Azure.ResourceManager.BillingBenefits.Models diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanOrderModelList.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanOrderModelList.cs index 140a883a4ac19..e0095d3305a5f 100644 --- a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanOrderModelList.cs +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanOrderModelList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.BillingBenefits; namespace Azure.ResourceManager.BillingBenefits.Models diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanPurchaseValidateContent.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanPurchaseValidateContent.cs index dad80da6b0fd7..15c8bba6491c3 100644 --- a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanPurchaseValidateContent.cs +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanPurchaseValidateContent.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.BillingBenefits; namespace Azure.ResourceManager.BillingBenefits.Models diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanUpdateValidateContent.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanUpdateValidateContent.cs index 7ff75567b67ac..aa19e47432fcd 100644 --- a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanUpdateValidateContent.cs +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanUpdateValidateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.BillingBenefits; namespace Azure.ResourceManager.BillingBenefits.Models { diff --git a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanValidateResponse.cs b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanValidateResponse.cs index 89ca9b0642334..0a2846470f2a5 100644 --- a/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanValidateResponse.cs +++ b/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/src/Generated/Models/SavingsPlanValidateResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.BillingBenefits; namespace Azure.ResourceManager.BillingBenefits.Models { diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Internal/ChangeTrackingList.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..1d12107e77040 --- /dev/null +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Blueprint +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/ArtifactList.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/ArtifactList.cs index fe38ce4600e27..258804ac468f5 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/ArtifactList.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/ArtifactList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Blueprint; namespace Azure.ResourceManager.Blueprint.Models diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentDeploymentJob.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentDeploymentJob.cs index 03cb38a00bdfe..ef86d85a5a7e6 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentDeploymentJob.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentDeploymentJob.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Blueprint; namespace Azure.ResourceManager.Blueprint.Models { diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentDeploymentJobResult.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentDeploymentJobResult.cs index 4ef68f7425ba3..2802bdb487141 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentDeploymentJobResult.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentDeploymentJobResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Blueprint; namespace Azure.ResourceManager.Blueprint.Models { diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentList.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentList.cs index 9ded4838da3d7..3a1a68d6b71c6 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentList.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Blueprint; namespace Azure.ResourceManager.Blueprint.Models diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentLockSettings.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentLockSettings.cs index 0f35257abd658..e056c145f023b 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentLockSettings.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentLockSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Blueprint; namespace Azure.ResourceManager.Blueprint.Models { diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentOperationList.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentOperationList.cs index f6ce55f341963..685d612e394cc 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentOperationList.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentOperationList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Blueprint; namespace Azure.ResourceManager.Blueprint.Models diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentStatus.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentStatus.cs index 7880697f47d88..9f08749c9e064 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentStatus.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/AssignmentStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Blueprint; namespace Azure.ResourceManager.Blueprint.Models { diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/BlueprintList.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/BlueprintList.cs index 96fc06608f9c5..cbb3ee5a20e7d 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/BlueprintList.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/BlueprintList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Blueprint; namespace Azure.ResourceManager.Blueprint.Models diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/ParameterDefinition.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/ParameterDefinition.cs index 6a1c708d033e0..781d57bd1d5f2 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/ParameterDefinition.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/ParameterDefinition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Blueprint; namespace Azure.ResourceManager.Blueprint.Models { diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/PublishedBlueprintList.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/PublishedBlueprintList.cs index 726d89dc7863b..4f7ff97265df1 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/PublishedBlueprintList.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/PublishedBlueprintList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Blueprint; namespace Azure.ResourceManager.Blueprint.Models diff --git a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/ResourceGroupDefinition.cs b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/ResourceGroupDefinition.cs index 4a8e538b53c5e..7d7356c2ccf47 100644 --- a/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/ResourceGroupDefinition.cs +++ b/sdk/blueprint/Azure.ResourceManager.Blueprint/src/Generated/Models/ResourceGroupDefinition.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Blueprint; namespace Azure.ResourceManager.Blueprint.Models { diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Internal/ChangeTrackingList.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..b7c101948c517 --- /dev/null +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.BotService +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelGetWithKeysResult.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelGetWithKeysResult.cs index 2b22c70382375..89f3d6623f7a8 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelGetWithKeysResult.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelGetWithKeysResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.BotService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.BotService.Models diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelSettings.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelSettings.cs index ad6ae88cb20c2..62308e74deb1c 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelSettings.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.BotService; namespace Azure.ResourceManager.BotService.Models { diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelSite.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelSite.cs index 860b481e379a7..aab379121501c 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelSite.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelSite.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.BotService; namespace Azure.ResourceManager.BotService.Models { diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingProperties.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingProperties.cs index b87b76d747092..ee31bf1238762 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingProperties.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.BotService; namespace Azure.ResourceManager.BotService.Models { diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResponseList.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResponseList.cs index e6f0c552460a1..36b4e59b52753 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResponseList.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResponseList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.BotService; namespace Azure.ResourceManager.BotService.Models diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionListResult.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionListResult.cs index 3a9d71a8b3d90..eed033ff62764 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionListResult.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.BotService; namespace Azure.ResourceManager.BotService.Models diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateLinkResourceData.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateLinkResourceData.cs index 14ff6c65f59bf..4b9bf9604fbeb 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateLinkResourceData.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateLinkResourceData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.BotService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.BotService.Models diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateLinkResourceListResult.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateLinkResourceListResult.cs index 4c9ce546abfe2..d8219f33d0f5f 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateLinkResourceListResult.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.BotService; namespace Azure.ResourceManager.BotService.Models { diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServiceProviderProperties.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServiceProviderProperties.cs index ff6a9579d8ef9..5fe4c88073e65 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServiceProviderProperties.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServiceProviderProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.BotService; namespace Azure.ResourceManager.BotService.Models { diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelResponseList.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelResponseList.cs index 9e3b084bf7e47..cb95b47642b54 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelResponseList.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelResponseList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.BotService; namespace Azure.ResourceManager.BotService.Models diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingResponseList.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingResponseList.cs index ddd2011319f12..ee0d538afda85 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingResponseList.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingResponseList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.BotService; namespace Azure.ResourceManager.BotService.Models diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineChannelProperties.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineChannelProperties.cs index 2c9b1afa6f8bc..148d3c73687de 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineChannelProperties.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/DirectLineChannelProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.BotService; namespace Azure.ResourceManager.BotService.Models { diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/FacebookChannelProperties.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/FacebookChannelProperties.cs index 6a5d490e056e5..ca9a6450d67c5 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/FacebookChannelProperties.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/FacebookChannelProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.BotService; namespace Azure.ResourceManager.BotService.Models { diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ServiceProviderResponseList.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ServiceProviderResponseList.cs index ba6c926104e42..5a16364f3bda2 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ServiceProviderResponseList.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ServiceProviderResponseList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.BotService; namespace Azure.ResourceManager.BotService.Models { diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelProperties.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelProperties.cs index afe2d8861352f..b857399043d71 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelProperties.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/TelephonyChannelProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.BotService; namespace Azure.ResourceManager.BotService.Models { diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/WebChatChannelProperties.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/WebChatChannelProperties.cs index 8de9efc6fb69a..5d6ca4d031b20 100644 --- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/WebChatChannelProperties.cs +++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/WebChatChannelProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.BotService; namespace Azure.ResourceManager.BotService.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Internal/ChangeTrackingList.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..f912c01efe4d9 --- /dev/null +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Cdn +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnEndpointPatch.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnEndpointPatch.cs index f3b289faa5a85..02267372a9d19 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnEndpointPatch.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnEndpointPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnOriginGroupPatch.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnOriginGroupPatch.cs index 76f10a6f8a4f7..edd6143f7274e 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnOriginGroupPatch.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnOriginGroupPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnWebApplicationFirewallPolicyList.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnWebApplicationFirewallPolicyList.cs index f4b165ca56b6f..5c274747bbbfa 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnWebApplicationFirewallPolicyList.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CdnWebApplicationFirewallPolicyList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ClientPortMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ClientPortMatchCondition.cs index 8c87172507303..b281e18c24979 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ClientPortMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ClientPortMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ContinentsResponse.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ContinentsResponse.cs index a7b4716442350..e96c1e674c039 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ContinentsResponse.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ContinentsResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CookiesMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CookiesMatchCondition.cs index 95335f91a3f9f..dc46d0adf5473 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CookiesMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CookiesMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomDomainListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomDomainListResult.cs index aa5c78d9d3b9b..0fcc8a92fe70a 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomDomainListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomDomainListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomRuleList.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomRuleList.cs index f3798fc3a7394..42bfa2e1e3eea 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomRuleList.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomRuleList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomRuleMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomRuleMatchCondition.cs index 5d1bdd8804100..3ff59cf0f07a5 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomRuleMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomRuleMatchCondition.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomerCertificateProperties.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomerCertificateProperties.cs index de8715ffde0a2..e744ed4e1747e 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomerCertificateProperties.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/CustomerCertificateProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Cdn; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/DeepCreatedOriginGroup.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/DeepCreatedOriginGroup.cs index 5718b398d17e2..929b40ac6723b 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/DeepCreatedOriginGroup.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/DeepCreatedOriginGroup.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/DeliveryRule.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/DeliveryRule.cs index 40c78f9fe4756..f9f5893ebf8aa 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/DeliveryRule.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/DeliveryRule.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/DeliveryRuleSslProtocolMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/DeliveryRuleSslProtocolMatchCondition.cs index 3a53fceb96113..28758e3c98243 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/DeliveryRuleSslProtocolMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/DeliveryRuleSslProtocolMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/EdgeNode.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/EdgeNode.cs index d0800b31da025..b002c843dd75c 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/EdgeNode.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/EdgeNode.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Cdn; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/EdgenodeResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/EdgenodeResult.cs index 74b7a93b3aa49..046596fa5cb95 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/EdgenodeResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/EdgenodeResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/EndpointListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/EndpointListResult.cs index dc1ed3c1a09a0..577d94820fb43 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/EndpointListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/EndpointListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorCustomDomainListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorCustomDomainListResult.cs index 896e231d407ed..199f529ebe791 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorCustomDomainListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorCustomDomainListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorEndpointListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorEndpointListResult.cs index cadff8e9a974d..270d414763109 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorEndpointListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorEndpointListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorOriginGroupListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorOriginGroupListResult.cs index 93d46d172588c..2f0be8e154463 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorOriginGroupListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorOriginGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorOriginListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorOriginListResult.cs index db2701c919016..4c9e5addb2f4b 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorOriginListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorOriginListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorPurgeContent.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorPurgeContent.cs index abfbb1bf5cd53..bad3d766ee9ff 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorPurgeContent.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorPurgeContent.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRoutePatch.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRoutePatch.cs index d99413b0cbecf..6c43c4fafb1e5 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRoutePatch.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRoutePatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Cdn; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRulePatch.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRulePatch.cs index 8cbc069648bc9..ce582d28ca887 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRulePatch.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/FrontDoorRulePatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HostNameMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HostNameMatchCondition.cs index dbd69c76dfec7..56a55865a76e3 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HostNameMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HostNameMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HttpVersionMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HttpVersionMatchCondition.cs index 0d54a9ff63a50..6c1f7204ad346 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HttpVersionMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/HttpVersionMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/IPAddressGroup.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/IPAddressGroup.cs index ac3483543332a..8877f23d706f7 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/IPAddressGroup.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/IPAddressGroup.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/IsDeviceMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/IsDeviceMatchCondition.cs index c8581ccab0062..70514577803a3 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/IsDeviceMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/IsDeviceMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleGroupDefinition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleGroupDefinition.cs index f425968bed680..5033a4f748db1 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleGroupDefinition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleGroupDefinition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleGroupOverrideSetting.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleGroupOverrideSetting.cs index 9f4119387cee5..04968945fbb4b 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleGroupOverrideSetting.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleGroupOverrideSetting.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleSetDefinition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleSetDefinition.cs index 5b3438495e819..0229fa541f730 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleSetDefinition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleSetDefinition.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Cdn; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleSetDefinitionList.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleSetDefinitionList.cs index b03de4f27daf7..0f058a4deb437 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleSetDefinitionList.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleSetDefinitionList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleSetList.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleSetList.cs index b133289071684..0e26bc6ca7002 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleSetList.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ManagedRuleSetList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/MetricsResponse.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/MetricsResponse.cs index 839616c00edaa..a1eefe2b45630 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/MetricsResponse.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/MetricsResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/MetricsResponseSeriesItem.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/MetricsResponseSeriesItem.cs index 10d8731c0cc42..3b02c4d84f9ec 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/MetricsResponseSeriesItem.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/MetricsResponseSeriesItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/OriginGroupListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/OriginGroupListResult.cs index 8c92d6a550327..9bb5abbd580b0 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/OriginGroupListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/OriginGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/OriginListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/OriginListResult.cs index f7e098178a740..74bc7897b4519 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/OriginListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/OriginListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/PostArgsMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/PostArgsMatchCondition.cs index 7bf084baf3280..8bf92139f1f98 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/PostArgsMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/PostArgsMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileListResult.cs index ace978538db6f..6910d147e698d 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetLogAnalyticsMetricsOptions.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetLogAnalyticsMetricsOptions.cs index b2dcbb5e6c44f..0db61f0d328d5 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetLogAnalyticsMetricsOptions.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetLogAnalyticsMetricsOptions.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetLogAnalyticsRankingsOptions.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetLogAnalyticsRankingsOptions.cs index 80a620d1289a0..df62cf009bf02 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetLogAnalyticsRankingsOptions.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetLogAnalyticsRankingsOptions.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetWafLogAnalyticsMetricsOptions.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetWafLogAnalyticsMetricsOptions.cs index 544d5a5b2e2ff..10929db7468e5 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetWafLogAnalyticsMetricsOptions.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetWafLogAnalyticsMetricsOptions.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetWafLogAnalyticsRankingsOptions.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetWafLogAnalyticsRankingsOptions.cs index 3645362ea5eb4..fad7de4d5eb22 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetWafLogAnalyticsRankingsOptions.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ProfileResourceGetWafLogAnalyticsRankingsOptions.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/QueryStringMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/QueryStringMatchCondition.cs index b4693a304607d..72c26f628db67 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/QueryStringMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/QueryStringMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RankingsResponse.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RankingsResponse.cs index 49b53f84f462a..502baf1d5d476 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RankingsResponse.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RankingsResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RankingsResponseTablesItem.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RankingsResponseTablesItem.cs index 4daf81ce31957..448aba53928b5 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RankingsResponseTablesItem.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RankingsResponseTablesItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RankingsResponseTablesPropertiesItemsItem.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RankingsResponseTablesPropertiesItemsItem.cs index 18a3f652b11d2..a6723c64abebb 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RankingsResponseTablesPropertiesItemsItem.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RankingsResponseTablesPropertiesItemsItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RateLimitRuleList.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RateLimitRuleList.cs index 0295e93b81285..c23c553d01b72 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RateLimitRuleList.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RateLimitRuleList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RemoteAddressMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RemoteAddressMatchCondition.cs index 7e272d3807857..ca96ced28c152 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RemoteAddressMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RemoteAddressMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestBodyMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestBodyMatchCondition.cs index c3aa358bbe50b..06ee0b7767c48 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestBodyMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestBodyMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestHeaderMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestHeaderMatchCondition.cs index d9b21cba844c3..2c1e362fe636c 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestHeaderMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestHeaderMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestMethodMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestMethodMatchCondition.cs index 86c63fe6c1063..e7b3d876bd41b 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestMethodMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestMethodMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestSchemeMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestSchemeMatchCondition.cs index 973d8fb567ab7..2ae6cb0cd2001 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestSchemeMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestSchemeMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestUriMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestUriMatchCondition.cs index 96c26b3436dc8..c0c20220583f9 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestUriMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RequestUriMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResourceUsageListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResourceUsageListResult.cs index d94cef00c5288..c4ec6e961f3d6 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResourceUsageListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResourceUsageListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResourcesResponse.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResourcesResponse.cs index d69f3525c7351..12ce76f152353 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResourcesResponse.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResourcesResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResourcesResponseEndpointsItem.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResourcesResponseEndpointsItem.cs index 8c0b7962dda3a..7ca790e4e8e60 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResourcesResponseEndpointsItem.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResourcesResponseEndpointsItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResponseBasedOriginErrorDetectionSettings.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResponseBasedOriginErrorDetectionSettings.cs index c74681ee51eb4..dc6db8ee067d1 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResponseBasedOriginErrorDetectionSettings.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ResponseBasedOriginErrorDetectionSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RouteCacheCompressionSettings.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RouteCacheCompressionSettings.cs index 0f6472d4e87c4..95c3e08b378ec 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RouteCacheCompressionSettings.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RouteCacheCompressionSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RouteListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RouteListResult.cs index 130087d2700b3..4ab34ad336e50 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RouteListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RouteListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RuleListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RuleListResult.cs index acbccba50e39b..166f6dc3b4be6 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RuleListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RuleSetListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RuleSetListResult.cs index 7a68b74762053..a592c6123a8c2 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RuleSetListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/RuleSetListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecretListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecretListResult.cs index 0c27a824d25c2..9b6f8d9742c8b 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecretListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecretListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyListResult.cs index ce69d4f62a752..b80817788bb87 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewall.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewall.cs index bbf7232ad622c..2d7e46824d4da 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewall.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewall.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Cdn; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Cdn.Models diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewallAssociation.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewallAssociation.cs index b849695637afd..46db224882b09 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewallAssociation.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewallAssociation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ServerPortMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ServerPortMatchCondition.cs index 4be105ac98c7d..f4c3891038d06 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ServerPortMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/ServerPortMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SocketAddressMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SocketAddressMatchCondition.cs index e829d8a95470c..987a3387f52aa 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SocketAddressMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SocketAddressMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SupportedOptimizationTypesListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SupportedOptimizationTypesListResult.cs index 28c85b0f11246..d04905d159e13 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SupportedOptimizationTypesListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SupportedOptimizationTypesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriFileExtensionMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriFileExtensionMatchCondition.cs index 0231109ac506b..97340515db4cb 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriFileExtensionMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriFileExtensionMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriFileNameMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriFileNameMatchCondition.cs index 324d1f4e0f5d6..02d28ca04e42d 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriFileNameMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriFileNameMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriPathMatchCondition.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriPathMatchCondition.cs index 12be995b83b4d..8f2c676ba5146 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriPathMatchCondition.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriPathMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriSigningActionProperties.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriSigningActionProperties.cs index d8ea9000d2407..af88116d11271 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriSigningActionProperties.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UriSigningActionProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UsagesListResult.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UsagesListResult.cs index 8ec0e70bceb4b..5f51845d34a6b 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UsagesListResult.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/UsagesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafMetricsResponse.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafMetricsResponse.cs index 243cb451722fa..d1ab9e545722e 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafMetricsResponse.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafMetricsResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafMetricsResponseSeriesItem.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafMetricsResponseSeriesItem.cs index 5c62c3059ead7..16f51e2ce5710 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafMetricsResponseSeriesItem.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafMetricsResponseSeriesItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafPolicyManagedRuleSet.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafPolicyManagedRuleSet.cs index 20cb3ab6b8315..b66f80dc338f1 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafPolicyManagedRuleSet.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafPolicyManagedRuleSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafRankingsResponse.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafRankingsResponse.cs index 344815a105924..237c6663f8c35 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafRankingsResponse.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafRankingsResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafRankingsResponseDataItem.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafRankingsResponseDataItem.cs index 8d00fb57dbe66..397c8d4f1ab5c 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafRankingsResponseDataItem.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafRankingsResponseDataItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Cdn; namespace Azure.ResourceManager.Cdn.Models { diff --git a/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Internal/ChangeTrackingList.cs b/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..e2366192aae6b --- /dev/null +++ b/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ChangeAnalysis +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Models/ChangeList.cs b/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Models/ChangeList.cs index 3a1331ac3d63c..0bd11d3c40cc3 100644 --- a/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Models/ChangeList.cs +++ b/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Models/ChangeList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ChangeAnalysis; namespace Azure.ResourceManager.ChangeAnalysis.Models { diff --git a/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Models/ChangeProperties.cs b/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Models/ChangeProperties.cs index 97cee862a8256..b7501bc63210a 100644 --- a/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Models/ChangeProperties.cs +++ b/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/src/Generated/Models/ChangeProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ChangeAnalysis; namespace Azure.ResourceManager.ChangeAnalysis.Models { diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Internal/ChangeTrackingList.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..05f0326155ec1 --- /dev/null +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Chaos +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/CapabilityListResult.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/CapabilityListResult.cs index 25e5703e862fe..5ae9ed8e414c6 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/CapabilityListResult.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/CapabilityListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Chaos; namespace Azure.ResourceManager.Chaos.Models diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/CapabilityTypeListResult.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/CapabilityTypeListResult.cs index 7860738247304..f6efa7e7af2c2 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/CapabilityTypeListResult.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/CapabilityTypeListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Chaos; namespace Azure.ResourceManager.Chaos.Models diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunActionStatus.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunActionStatus.cs index 5c6c1b386f3d0..210602f8f2089 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunActionStatus.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunActionStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Chaos; namespace Azure.ResourceManager.Chaos.Models { diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunBranchStatus.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunBranchStatus.cs index 38d10455c2490..7cd92829bba29 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunBranchStatus.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunBranchStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Chaos; namespace Azure.ResourceManager.Chaos.Models { diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunInformation.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunInformation.cs index 4356fbac8eff0..e5c32d8f29656 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunInformation.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunInformation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Chaos; namespace Azure.ResourceManager.Chaos.Models { diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunStepStatus.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunStepStatus.cs index 7c33f67e71290..b917a8318c8f1 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunStepStatus.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosExperimentRunStepStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Chaos; namespace Azure.ResourceManager.Chaos.Models { diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosTargetSimpleFilterParameters.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosTargetSimpleFilterParameters.cs index 082fbf73db11b..3869cea75ecf6 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosTargetSimpleFilterParameters.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ChaosTargetSimpleFilterParameters.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Chaos; namespace Azure.ResourceManager.Chaos.Models { diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ExperimentExecutionListResult.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ExperimentExecutionListResult.cs index 4f0ccac435a00..e20c29cfee384 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ExperimentExecutionListResult.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ExperimentExecutionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Chaos; namespace Azure.ResourceManager.Chaos.Models diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ExperimentListResult.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ExperimentListResult.cs index 3d3829d6a98e5..ae5fcf283550e 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ExperimentListResult.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/ExperimentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Chaos; namespace Azure.ResourceManager.Chaos.Models diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/TargetListResult.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/TargetListResult.cs index 24ef0c6f1677f..8baefcb6d3c27 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/TargetListResult.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/TargetListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Chaos; namespace Azure.ResourceManager.Chaos.Models diff --git a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/TargetTypeListResult.cs b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/TargetTypeListResult.cs index e7e9e30fe2a55..bd4411c8595b0 100644 --- a/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/TargetTypeListResult.cs +++ b/sdk/chaos/Azure.ResourceManager.Chaos/src/Generated/Models/TargetTypeListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Chaos; namespace Azure.ResourceManager.Chaos.Models diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Internal/ChangeTrackingList.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..e120038af56b5 --- /dev/null +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.Language.QuestionAnswering +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextResult.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextResult.Serialization.cs index 92f99258d294a..1e9a2ce734b7e 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextResult.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextResult.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.AI.Language.QuestionAnswering { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextResult.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextResult.cs index bd5e53635d19b..d07568c24fb6a 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextResult.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextResult.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.Language.QuestionAnswering { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersResult.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersResult.Serialization.cs index a5571dbcc8680..9bd2689880623 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersResult.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersResult.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.AI.Language.QuestionAnswering { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersResult.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersResult.cs index 15f695478cd65..4cc86b61848b6 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersResult.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersResult.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.Language.QuestionAnswering { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/Error.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/Error.Serialization.cs index 7d7f6b3d0c647..ec08d02fedba2 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/Error.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/Error.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.AI.Language.QuestionAnswering { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/Error.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/Error.cs index 29c37526daae9..a5d856335581c 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/Error.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/Error.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.Language.QuestionAnswering { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerDialog.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerDialog.Serialization.cs index 3e3b84fdbc414..0ac0a02fe04d6 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerDialog.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerDialog.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.AI.Language.QuestionAnswering { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerDialog.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerDialog.cs index 903203db519fe..218b1b64529fc 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerDialog.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerDialog.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.Language.QuestionAnswering { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/MetadataFilter.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/MetadataFilter.cs index 903d3f242520e..6478572d2b443 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/MetadataFilter.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/MetadataFilter.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.Language.QuestionAnswering { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/QueryFilters.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/QueryFilters.cs index b145f4466ff30..5918d76e22440 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/QueryFilters.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/QueryFilters.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.Language.QuestionAnswering { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Internal/ChangeTrackingList.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..b1a4c0b5b5195 --- /dev/null +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.CognitiveServices +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/AvailableCognitiveServicesSku.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/AvailableCognitiveServicesSku.cs index 4d9d6b40051d9..a2c53d0156879 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/AvailableCognitiveServicesSku.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/AvailableCognitiveServicesSku.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentListResult.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentListResult.cs index 91f4a55b87cfc..c75caae60a3ae 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentListResult.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentProperties.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentProperties.cs index 2ef2b013b7d30..7998b5a6d344f 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentProperties.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountListResult.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountListResult.cs index be75754b1409e..52c1ca9df4a09 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountListResult.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountModel.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountModel.cs index 23ccd0c931dc2..80ae352637414 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountModel.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountModel.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CognitiveServices; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.CognitiveServices.Models diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountModelListResult.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountModelListResult.cs index 811b29f504588..b437aa3d5d652 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountModelListResult.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountModelListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountSkuListResult.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountSkuListResult.cs index 4259cec407e17..509efaaf4217e 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountSkuListResult.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesAccountSkuListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesModelListResult.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesModelListResult.cs index 236f811f13483..eb32cff57150a 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesModelListResult.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesModelListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesModelSku.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesModelSku.cs index 4b125ae1d226e..d9e25a3cd8083 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesModelSku.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesModelSku.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesMultiRegionSettings.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesMultiRegionSettings.cs index 1c8ee288d71df..3a78373117322 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesMultiRegionSettings.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesMultiRegionSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.cs index 7c0ed207199fd..cab9f0ac6972d 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateEndpointConnectionListResult.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateEndpointConnectionListResult.cs index 1107a439de107..c40c61d701d84 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateEndpointConnectionListResult.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateLinkResourceListResult.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateLinkResourceListResult.cs index dd51d05b52c08..2aeed1bfd51a0 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateLinkResourceListResult.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateLinkResourceProperties.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateLinkResourceProperties.cs index b13655427fab8..fefc4662930d4 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateLinkResourceProperties.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesPrivateLinkResourceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuAvailabilityListResult.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuAvailabilityListResult.cs index edf0a1535dff8..22723937b7356 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuAvailabilityListResult.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuAvailabilityListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuRestrictionInfo.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuRestrictionInfo.cs index f34a3df627222..acf7a4382f48a 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuRestrictionInfo.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuRestrictionInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuRestrictions.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuRestrictions.cs index c6d4fec023d5c..503babe2542de 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuRestrictions.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesSkuRestrictions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanAccountAssociationListResult.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanAccountAssociationListResult.cs index 0e81c495d9b12..b4e06d9295907 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanAccountAssociationListResult.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanAccountAssociationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanListResult.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanListResult.cs index d6c07bdfce6c6..165186a049bf6 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanListResult.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanProperties.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanProperties.cs index 51d33ab543938..a20ceeba2a2a2 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanProperties.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentPlanProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentTierListResult.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentTierListResult.cs index 764ec85d025e8..9058486c4bfdb 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentTierListResult.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CommitmentTierListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountCallRateLimit.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountCallRateLimit.cs index a9d32c2b7bc38..712bc46c0a580 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountCallRateLimit.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountCallRateLimit.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountQuotaLimit.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountQuotaLimit.cs index af58e7d1fedd4..6f9554fa40b42 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountQuotaLimit.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountQuotaLimit.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountThrottlingRule.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountThrottlingRule.cs index adce59f2810d7..d9b55398c67d2 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountThrottlingRule.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountThrottlingRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountUsageListResult.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountUsageListResult.cs index 09bfff70a4365..f24da63168332 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountUsageListResult.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountUsageListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CognitiveServices; namespace Azure.ResourceManager.CognitiveServices.Models { diff --git a/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..04becffc576b0 --- /dev/null +++ b/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Communication.AlphaIds +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationError.Serialization.cs index ad76aa9b06e77..32880d540a845 100644 --- a/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationError.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Communication.AlphaIds; namespace Azure.Communication.AlphaIds.Models { diff --git a/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationError.cs b/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationError.cs index 0bce98cf1918a..7c8ddbd7d767a 100644 --- a/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationError.cs +++ b/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Communication.AlphaIds; namespace Azure.Communication.AlphaIds.Models { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..c28660dcbee9d --- /dev/null +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Communication.CallAutomation +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs index 6e71d196ac18c..1e9c8ebe8b57b 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs @@ -8,7 +8,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.CallAutomation { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnectionPropertiesInternal.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnectionPropertiesInternal.cs index 1df110d9183f4..5838fe3251f9b 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnectionPropertiesInternal.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnectionPropertiesInternal.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.CallAutomation { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CollectTonesResult.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CollectTonesResult.Serialization.cs index 4eba33fe81e70..b5363c8449da3 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CollectTonesResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CollectTonesResult.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.CallAutomation { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CollectTonesResult.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CollectTonesResult.cs index b41c4023f4c8a..a8a30d8753762 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CollectTonesResult.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CollectTonesResult.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.CallAutomation { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationError.Serialization.cs index 8f2cd991d6284..3f41c90e2234a 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationError.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.CallAutomation { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationError.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationError.cs index 24728e55e594a..7ba8dace480a8 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationError.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationError.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.CallAutomation { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfOptionsInternal.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfOptionsInternal.cs index 59dfbe0570ab2..bcca5db7f170b 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfOptionsInternal.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfOptionsInternal.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.CallAutomation { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfResult.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfResult.Serialization.cs index c981f38a362da..b859708920d0b 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfResult.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.CallAutomation { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfResult.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfResult.cs index 0fe04843290a4..ed1384d25eefa 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfResult.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfResult.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.CallAutomation { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs index 83cb055a1a6b5..6b2d34cf052fb 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.CallAutomation { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ParticipantsUpdatedInternal.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ParticipantsUpdatedInternal.cs index 90bb018308059..cfee784abddf2 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ParticipantsUpdatedInternal.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ParticipantsUpdatedInternal.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.CallAutomation { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayRequestInternal.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayRequestInternal.cs index 42a94fdf84f85..57b1433b3cebc 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayRequestInternal.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayRequestInternal.cs @@ -9,7 +9,6 @@ using System.Collections.Generic; using System.Linq; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.CallAutomation { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeOptionsInternal.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeOptionsInternal.cs index 99b1a8df81078..972d42b1997e2 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeOptionsInternal.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeOptionsInternal.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.CallAutomation { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartCallRecordingRequestInternal.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartCallRecordingRequestInternal.cs index 515067d3487fd..dd54746ef9f7d 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartCallRecordingRequestInternal.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartCallRecordingRequestInternal.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.CallAutomation { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..01f2ff7c67472 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Communication.CallingServer +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsFailedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsFailedInternal.Serialization.cs index 14f6c47b5bd1f..f06942c95795c 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsFailedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsFailedInternal.Serialization.cs @@ -8,7 +8,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsFailedInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsFailedInternal.cs index a34de75238455..e8e54041979a6 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsFailedInternal.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsFailedInternal.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsResponseInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsResponseInternal.Serialization.cs index d7225b86fd335..b8470fb3f2201 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsResponseInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsResponseInternal.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsResponseInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsResponseInternal.cs index 750657ed01fe6..09ddb32b718f6 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsResponseInternal.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsResponseInternal.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsSucceededInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsSucceededInternal.Serialization.cs index c19aaa525ec37..2612f2e9e473f 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsSucceededInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsSucceededInternal.Serialization.cs @@ -8,7 +8,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsSucceededInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsSucceededInternal.cs index 88e351164beb8..1282219edf795 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsSucceededInternal.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsSucceededInternal.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs index e90449e853d90..259a381d6edd9 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs @@ -8,7 +8,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionPropertiesInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionPropertiesInternal.cs index 0b9a220315990..78d6c3480692f 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionPropertiesInternal.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionPropertiesInternal.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CollectTonesResult.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CollectTonesResult.Serialization.cs index 26baa58dab4aa..99a35491299af 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CollectTonesResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CollectTonesResult.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CollectTonesResult.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CollectTonesResult.cs index e3d3043066285..b31475ba05475 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CollectTonesResult.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CollectTonesResult.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationError.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationError.cs index a548e37b62d07..5f7e6fd2575f0 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationError.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationError.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/DtmfOptionsInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/DtmfOptionsInternal.cs index ffbb2b6d2caee..79f8d52ec2db3 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/DtmfOptionsInternal.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/DtmfOptionsInternal.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetParticipantsResponseInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetParticipantsResponseInternal.Serialization.cs index 38c008e8552ad..dc9634ea93105 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetParticipantsResponseInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetParticipantsResponseInternal.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetParticipantsResponseInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetParticipantsResponseInternal.cs index 0a4bf96991df0..d802a063644eb 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetParticipantsResponseInternal.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetParticipantsResponseInternal.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs index c7d0236fd5c1d..19eda1a846899 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs @@ -8,7 +8,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedInternal.cs index 8385e96717f71..91d8bbb00eac7 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedInternal.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedInternal.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayRequestInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayRequestInternal.cs index f85cba580b25c..c9a87092a7870 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayRequestInternal.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayRequestInternal.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingRequestInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingRequestInternal.cs index 06bd956cde8c4..dd0cd3c94bdbc 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingRequestInternal.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingRequestInternal.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.CallingServer { diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..b7f7e1f810545 --- /dev/null +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Communication.Chat +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsResult.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsResult.Serialization.cs index b44469642bf4b..c55e138262217 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsResult.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.Chat { diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsResult.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsResult.cs index 9aa69ece7b4f2..303733abd500e 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsResult.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsResult.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.Chat { diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatError.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatError.Serialization.cs index 91ae1f8f7afb6..cb06d506c0bf4 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatError.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatError.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.Chat { diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatError.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatError.cs index 5e504ca4595cf..c71ca04fcf796 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatError.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatError.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.Chat { diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageContentInternal.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageContentInternal.Serialization.cs index e2a7dbcbf9a77..ef6ce5bb0ccb0 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageContentInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageContentInternal.Serialization.cs @@ -8,7 +8,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.Chat { diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageContentInternal.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageContentInternal.cs index 1d7ae63cfd7f2..20926be2943b9 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageContentInternal.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageContentInternal.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using Azure.Communication; -using Azure.Core; namespace Azure.Communication.Chat { diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadRequest.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadRequest.cs index 75ac226c9d3c3..85275b5883541 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadRequest.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadRequest.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.Chat { diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadResultInternal.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadResultInternal.Serialization.cs index e688043b7337f..67cc0ce97dcf9 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadResultInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadResultInternal.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.Chat { diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadResultInternal.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadResultInternal.cs index 40dbfafd2fa96..30ff9d385a9a3 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadResultInternal.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadResultInternal.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.Chat { diff --git a/sdk/communication/Azure.Communication.Email/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.Communication.Email/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..d2294c1002117 --- /dev/null +++ b/sdk/communication/Azure.Communication.Email/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Communication.Email +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailRecipients.cs b/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailRecipients.cs index c08b4a6ad59fe..c587d962e968d 100644 --- a/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailRecipients.cs +++ b/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailRecipients.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.Communication.Email { diff --git a/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorDetail.Serialization.cs index 81af4acfff3d2..423024cf672cc 100644 --- a/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorDetail.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.Email { diff --git a/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorDetail.cs b/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorDetail.cs index 9ef2b68aaa6aa..9517393b49c62 100644 --- a/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorDetail.cs +++ b/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorDetail.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.Email { diff --git a/sdk/communication/Azure.Communication.Identity/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.Communication.Identity/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..66c07102b3e5d --- /dev/null +++ b/sdk/communication/Azure.Communication.Identity/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Communication.Identity +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationError.Serialization.cs index 9466f29eb2199..371caeade7c55 100644 --- a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationError.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Communication.Identity; namespace Azure.Communication.Identity.Models { diff --git a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationError.cs b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationError.cs index 19d9c04ece35e..7a9e331435e2a 100644 --- a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationError.cs +++ b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Communication.Identity; namespace Azure.Communication.Identity.Models { diff --git a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityCreateRequest.cs b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityCreateRequest.cs index ce0575b2dbc84..cbcffbd61843e 100644 --- a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityCreateRequest.cs +++ b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityCreateRequest.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using Azure.Communication.Identity; -using Azure.Core; namespace Azure.Communication.Identity.Models { diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ClassificationPolicy.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ClassificationPolicy.cs index 5a09c0f119c73..b8d36cb3c66a0 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ClassificationPolicy.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ClassificationPolicy.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; namespace Azure.Communication.JobRouter { diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionPolicy.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionPolicy.cs index 28e6621ac3128..5c7d7af842f3e 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionPolicy.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ExceptionPolicy.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; namespace Azure.Communication.JobRouter { diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..8a2d6fe0fc583 --- /dev/null +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Communication.JobRouter +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ManualReclassifyExceptionAction.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ManualReclassifyExceptionAction.cs index 7932a618add2d..c5876fdad6dc3 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ManualReclassifyExceptionAction.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ManualReclassifyExceptionAction.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.JobRouter { diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ScoringRuleOptions.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ScoringRuleOptions.cs index 0af5e38adf856..d4b27ac9dd22b 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/ScoringRuleOptions.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/ScoringRuleOptions.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.JobRouter { diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..aa111fb2d7fe1 --- /dev/null +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Communication.MediaComposition +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationError.Serialization.cs index 6f7c6d4eaf579..b04f8d808cdcd 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationError.Serialization.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.Text.Json; +using Azure.Communication.MediaComposition; using Azure.Core; namespace Azure.Communication.MediaComposition.Models diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationError.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationError.cs index 5fb84c7d5324b..11028ffb017fe 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationError.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Communication.MediaComposition; namespace Azure.Communication.MediaComposition.Models { diff --git a/sdk/communication/Azure.Communication.Messages/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.Communication.Messages/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..f5cc6285a2c73 --- /dev/null +++ b/sdk/communication/Azure.Communication.Messages/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Communication.Messages +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.Communication.Messages/src/Generated/MessageTemplate.cs b/sdk/communication/Azure.Communication.Messages/src/Generated/MessageTemplate.cs index 754d34321e0f5..666187c52235e 100644 --- a/sdk/communication/Azure.Communication.Messages/src/Generated/MessageTemplate.cs +++ b/sdk/communication/Azure.Communication.Messages/src/Generated/MessageTemplate.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure.Communication.Messages.Models.Channels; -using Azure.Core; namespace Azure.Communication.Messages { diff --git a/sdk/communication/Azure.Communication.Messages/src/Generated/WhatsAppMessageTemplateBindings.cs b/sdk/communication/Azure.Communication.Messages/src/Generated/WhatsAppMessageTemplateBindings.cs index 1af787557939a..b3265beb6f278 100644 --- a/sdk/communication/Azure.Communication.Messages/src/Generated/WhatsAppMessageTemplateBindings.cs +++ b/sdk/communication/Azure.Communication.Messages/src/Generated/WhatsAppMessageTemplateBindings.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure.Communication.Messages; -using Azure.Core; namespace Azure.Communication.Messages.Models.Channels { diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..e25be64e062ca --- /dev/null +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Communication.NetworkTraversal +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationError.Serialization.cs index df2d6d6496cba..8b4c1ad4de30c 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationError.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.NetworkTraversal { diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationError.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationError.cs index 538f14391cd3c..7247d049b6b6b 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationError.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationError.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.NetworkTraversal { diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..9bce812f214b0 --- /dev/null +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Communication.PhoneNumbers +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/CommunicationError.Serialization.cs index 83fdc405dd8f4..230c25096d450 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/CommunicationError.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.PhoneNumbers { diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/CommunicationError.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/CommunicationError.cs index 9808640b94d68..8344ab8baa6a0 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/CommunicationError.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/CommunicationError.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.PhoneNumbers { diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OfferingsResponse.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OfferingsResponse.Serialization.cs index 9157d68626733..9ec54cbf5e5c4 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OfferingsResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OfferingsResponse.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.PhoneNumbers { diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OfferingsResponse.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OfferingsResponse.cs index 2909edd4a8140..5ab790f393cc8 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OfferingsResponse.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OfferingsResponse.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.PhoneNumbers { diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCountries.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCountries.Serialization.cs index d8a96fba2fce5..b4d9a3cb407d9 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCountries.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCountries.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.PhoneNumbers { diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCountries.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCountries.cs index b067fc6095a1b..9043aa33bdf3d 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCountries.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCountries.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.PhoneNumbers { diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberLocalities.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberLocalities.Serialization.cs index 2cf74d35e6eef..94822ee939885 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberLocalities.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberLocalities.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.PhoneNumbers { diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberLocalities.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberLocalities.cs index d47e359970b7b..c75b4623e5337 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberLocalities.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberLocalities.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.PhoneNumbers { diff --git a/sdk/communication/Azure.Communication.Rooms/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.Communication.Rooms/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..9be7fa15525bc --- /dev/null +++ b/sdk/communication/Azure.Communication.Rooms/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Communication.Rooms +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationError.Serialization.cs index e7a848a1af36b..415436dc7d070 100644 --- a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationError.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Communication.Rooms { diff --git a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationError.cs b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationError.cs index 747753f959295..6608f51efc968 100644 --- a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationError.cs +++ b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationError.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Communication.Rooms { diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..fcfef9512de98 --- /dev/null +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Communication.ShortCodes +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationError.Serialization.cs index 5fcc742929043..92ee36aee6f8d 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationError.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Communication.ShortCodes; namespace Azure.Communication.ShortCodes.Models { diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationError.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationError.cs index 0b7dc5779746c..f14bb09cd7095 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationError.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Communication.ShortCodes; namespace Azure.Communication.ShortCodes.Models { diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageDetails.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageDetails.cs index 1cfa2fc341355..fd0c478b79ac1 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageDetails.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageDetails.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Communication.ShortCodes; namespace Azure.Communication.ShortCodes.Models { diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageExampleSequence.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageExampleSequence.cs index a5d093c6e08a7..884839f490d83 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageExampleSequence.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageExampleSequence.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Communication.ShortCodes; namespace Azure.Communication.ShortCodes.Models { diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ProgramDetails.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ProgramDetails.cs index eaa077500912c..0dd9bedb2f689 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ProgramDetails.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ProgramDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Communication.ShortCodes; namespace Azure.Communication.ShortCodes.Models { diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCode.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCode.Serialization.cs index e5d1719f0ab1e..830569bfc16d7 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCode.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCode.Serialization.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using System.Text.Json; +using Azure.Communication.ShortCodes; using Azure.Core; namespace Azure.Communication.ShortCodes.Models diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCode.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCode.cs index f26e63aba66ff..8b4753296b1fb 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCode.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCode.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Communication.ShortCodes; namespace Azure.Communication.ShortCodes.Models { diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodes.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodes.Serialization.cs index e7f39547ec5ac..6dcc34d075c0f 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodes.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodes.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Communication.ShortCodes; namespace Azure.Communication.ShortCodes.Models { diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodes.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodes.cs index fcda22995cdd5..98d1923c3542a 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodes.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodes.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Communication.ShortCodes; namespace Azure.Communication.ShortCodes.Models { diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBrief.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBrief.cs index dd8abb084a4cc..231a4a2c96ce9 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBrief.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBrief.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Communication.ShortCodes; namespace Azure.Communication.ShortCodes.Models { diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBriefs.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBriefs.Serialization.cs index f01de8ea6303e..1937d417878ee 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBriefs.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBriefs.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Communication.ShortCodes; namespace Azure.Communication.ShortCodes.Models { diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBriefs.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBriefs.cs index 068504e35b569..7d0f56f524b00 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBriefs.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBriefs.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Communication.ShortCodes; namespace Azure.Communication.ShortCodes.Models { diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/UseCase.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/UseCase.cs index d26cdb25db554..d2494baa4a24e 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/UseCase.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/UseCase.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Communication.ShortCodes; namespace Azure.Communication.ShortCodes.Models { diff --git a/sdk/communication/Azure.Communication.Sms/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.Communication.Sms/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..dd0d941029778 --- /dev/null +++ b/sdk/communication/Azure.Communication.Sms/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Communication.Sms +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Internal/ChangeTrackingList.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..d6f9bc128aa77 --- /dev/null +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Communication +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceResourceList.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceResourceList.cs index 215b9e1988fd1..203139b74d955 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceResourceList.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Communication; namespace Azure.ResourceManager.Communication.Models diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceResourcePatch.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceResourcePatch.cs index 04a6b01e633da..6ce6c8c0c7059 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceResourcePatch.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/CommunicationServiceResourcePatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Communication; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Communication.Models diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/DomainResourceList.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/DomainResourceList.cs index 66e4b9f8d0d11..5341d6c24d895 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/DomainResourceList.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/DomainResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Communication; namespace Azure.ResourceManager.Communication.Models diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/EmailServiceResourceList.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/EmailServiceResourceList.cs index 482a00c6ce783..7bdc7997f97f0 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/EmailServiceResourceList.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/EmailServiceResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Communication; namespace Azure.ResourceManager.Communication.Models diff --git a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/SenderUsernameResourceCollection.cs b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/SenderUsernameResourceCollection.cs index d42bd39af2952..2301db714b62d 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/SenderUsernameResourceCollection.cs +++ b/sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/SenderUsernameResourceCollection.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Communication; namespace Azure.ResourceManager.Communication.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Internal/ChangeTrackingList.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..7d42798a58480 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Compute +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ApplicationProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ApplicationProfile.cs index f4a813f362473..52af1f4f18e70 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ApplicationProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ApplicationProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AttachDetachDataDisksRequest.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AttachDetachDataDisksRequest.cs index 4db261d0e2236..376bdd9039773 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AttachDetachDataDisksRequest.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AttachDetachDataDisksRequest.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AvailabilitySetPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AvailabilitySetPatch.cs index 9edd5dde05bdc..6fb9add8d8b9d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AvailabilitySetPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AvailabilitySetPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationGroupInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationGroupInstanceView.cs index a2edd72caf58d..797f410d4d567 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationGroupInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationGroupInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationGroupPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationGroupPatch.cs index 79cdece638a4a..64866eee1d4e8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationGroupPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationGroupPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationInstanceView.cs index f4c1e3cc9c925..07f2c2ab72c82 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationPatch.cs index 511f3abf61866..bad9e4a7bbce9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationUtilization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationUtilization.cs index c479575323ef8..8a14c9fdf1e78 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationUtilization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationUtilization.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtension.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtension.cs index 9464a18d0e4d5..3acb0b8fda67e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtension.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtension.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtensionProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtensionProfile.cs index 1520f4eb2b71b..8f4104fa66ee2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtensionProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtensionProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceInstanceView.cs index bc6b30a358cfa..2b5071a32d235 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceNetworkProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceNetworkProfile.cs index 06dbb070c1548..f81dd7e9ccdc5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceNetworkProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceNetworkProfile.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSProfile.cs index c1216b181ef4e..2d320a305876b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleProfile.cs index c83775674b96a..6c193edfc4ca3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceVaultSecretGroup.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceVaultSecretGroup.cs index 959d741495d5d..ee453e808acb1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceVaultSecretGroup.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceVaultSecretGroup.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryInfo.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryInfo.cs index 3f4eff76facd7..96be78191ecbd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryInfo.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CommunityGalleryInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeApiError.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeApiError.cs index 1ffcef064120b..a3c05ae58f1f9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeApiError.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeApiError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateEndpointConnectionListResult.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateEndpointConnectionListResult.cs index ff77802479b8c..b5fa00a40ce6c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateEndpointConnectionListResult.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateLinkResourceData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateLinkResourceData.cs index fa54b749a2345..12a2f92e79d6a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateLinkResourceData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateLinkResourceData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateLinkResourceListResult.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateLinkResourceListResult.cs index fa18f9c2c3afb..2e08a8c88a5dc 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateLinkResourceListResult.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputePrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSku.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSku.cs index a15af8e237e19..bea5c1add44c6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSku.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSku.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuLocationInfo.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuLocationInfo.cs index d4225705e529b..d7c23d7f4ae8f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuLocationInfo.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuLocationInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictionInfo.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictionInfo.cs index e83886bb5caac..9f058f43393a0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictionInfo.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictionInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictions.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictions.cs index 444653e0f768e..77edb96453faf 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictions.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuRestrictions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuZoneDetails.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuZoneDetails.cs index a198a3e1fc246..a716febadade8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuZoneDetails.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ComputeResourceSkuZoneDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostAvailableCapacity.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostAvailableCapacity.cs index d74beccafc526..4f0a5ea7d7ac0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostAvailableCapacity.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostAvailableCapacity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostGroupInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostGroupInstanceView.cs index d8d0f44dd32a8..6ecf2205b0e4d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostGroupInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostGroupInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostGroupPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostGroupPatch.cs index 2d7203d7ad1da..9bb98dafcf7c1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostGroupPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostGroupPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostInstanceView.cs index 01bc6b47aba96..ad29baae0f57a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostPatch.cs index ded31bde2f6ee..757b7e1620e69 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostSizeListResult.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostSizeListResult.cs index e3499da912d38..338277eca135a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostSizeListResult.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostSizeListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/Disallowed.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/Disallowed.cs index c11444e5599b3..20c6929ac04e3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/Disallowed.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/Disallowed.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskInstanceView.cs index 24cc5f7c78edc..a361e8c2fe72c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EncryptionImages.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EncryptionImages.cs index ce9b95dd5251c..b103d4156f6d0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EncryptionImages.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EncryptionImages.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EncryptionSettingsGroup.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EncryptionSettingsGroup.cs index fd352f3e343c5..7f6d1a2257d7c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EncryptionSettingsGroup.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EncryptionSettingsGroup.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomAction.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomAction.cs index 0dd12e43df310..08a3f0e2eb1a2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomAction.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomAction.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs index a908b276561ed..2aa33a91f4774 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs index d353f8395c11a..5bb5c5a64e19b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactPublishingProfileBase.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactPublishingProfileBase.cs index eb1045cd76005..545fc59052348 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactPublishingProfileBase.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactPublishingProfileBase.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs index e86ce6f003e28..3584f1eb9fe5e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.cs index 73d9db0c50ad4..0bf804b92dcf5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.cs index 3f1efd54146b3..c089733faf90e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionUefiSettings.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionUefiSettings.cs index a5fb8857fe36b..98b1260069f31 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionUefiSettings.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionUefiSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageProfile.cs index 1e0feec58cab6..e2980a7690a03 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/InstanceViewStatusesSummary.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/InstanceViewStatusesSummary.cs index d7926f1217e22..6d9a1d9a2c093 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/InstanceViewStatusesSummary.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/InstanceViewStatusesSummary.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LinuxParameters.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LinuxParameters.cs index 804d588662fad..049bc0ae105aa 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LinuxParameters.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LinuxParameters.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PatchInstallationDetail.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PatchInstallationDetail.cs index ecae3e6dfed70..759708412cff3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PatchInstallationDetail.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PatchInstallationDetail.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ProximityPlacementGroupPropertiesIntent.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ProximityPlacementGroupPropertiesIntent.cs index 2cb7194c8a5ec..def4d54b2c511 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ProximityPlacementGroupPropertiesIntent.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ProximityPlacementGroupPropertiesIntent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ReplicationStatus.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ReplicationStatus.cs index 42fae0dd51ff1..5d2dc51661524 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ReplicationStatus.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ReplicationStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ResourceSharingProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ResourceSharingProfile.cs index 41bfa230b1b41..62a6b876bce24 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ResourceSharingProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ResourceSharingProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointGroupListResult.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointGroupListResult.cs index f49df809ddac3..ce0dd8757e092 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointGroupListResult.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointGroupPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointGroupPatch.cs index c100f513111d9..b9c61474d6be5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointGroupPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointGroupPatch.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointInstanceView.cs index ced19e8856754..e9c651faef94e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointSourceVmStorageProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointSourceVmStorageProfile.cs index 3f6b577eb84a4..56d30454d9b45 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointSourceVmStorageProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RestorePointSourceVmStorageProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceNetworkProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceNetworkProfile.cs index 4cf27cd884a3c..3226c90defcad 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceNetworkProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceNetworkProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceView.cs index 6b2cc1d4a7116..f16c7995cd5aa 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RunCommandDocument.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RunCommandDocument.cs index f9e85a0b7763f..b255e7deaa807 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RunCommandDocument.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RunCommandDocument.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RunCommandInput.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RunCommandInput.cs index 5dd19e2f6c702..76d8cce7cd7b2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RunCommandInput.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RunCommandInput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ScaleInPolicy.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ScaleInPolicy.cs index f0d1ff5fd90c9..fe46c8cb597c7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ScaleInPolicy.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ScaleInPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionStorageProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionStorageProfile.cs index d9042a8eb6ff4..39ff43e384894 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionStorageProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageVersionStorageProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs index 8dc6d7bb06dac..3bca6878f2291 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs index 330a4a2f6ff08..25d36fbd323da 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingProfileGroup.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingStatus.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingStatus.cs index bdc204660ea8d..13fdb14ad2198 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingStatus.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs index 758834be8cf59..a57707325674d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharingUpdate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SshConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SshConfiguration.cs index 604191c386d7c..7e0645101bc46 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SshConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SshConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKey.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKey.cs index a8a92cc8208a3..3e66a913243fd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKey.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKey.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKeySignatures.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKeySignatures.cs index 5489ee53d4625..5d489f2d2a68c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKeySignatures.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UefiKeySignatures.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VaultSecretGroup.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VaultSecretGroup.cs index a0cc2e7584d04..b18880b9b549f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VaultSecretGroup.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VaultSecretGroup.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineAgentInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineAgentInstanceView.cs index 3cc2582686320..f1ccdbca1f963 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineAgentInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineAgentInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineAssessPatchesResult.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineAssessPatchesResult.cs index 86ba9edcdb2be..d025a9978a656 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineAssessPatchesResult.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineAssessPatchesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineCaptureResult.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineCaptureResult.cs index c454403c2d384..33713149a92dc 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineCaptureResult.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineCaptureResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionInstanceView.cs index 3d04495541091..7a25580adfd25 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionsListResult.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionsListResult.cs index ecb16586ae04b..67a530333029a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionsListResult.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineImage.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineImage.cs index 7ec0352132df4..755af747b36ee 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineImage.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineImage.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineInstallPatchesResult.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineInstallPatchesResult.cs index 92c5819b99879..ef7d0e47aa860 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineInstallPatchesResult.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineInstallPatchesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineInstanceView.cs index a09db46efbd64..785c8478a37fa 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs index c036f43602f0d..7e2026ace0806 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceDnsSettingsConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceDnsSettingsConfiguration.cs index f322381d82847..6c228ff85d2c7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceDnsSettingsConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceDnsSettingsConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceIPConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceIPConfiguration.cs index a4ec6a72abba2..834f4ed16d3e3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceIPConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceIPConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkProfile.cs index a92cedd5bc9d5..384a4d6b18c47 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineOSProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineOSProfile.cs index 63cdbf6784241..88a49d8fb7a3f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineOSProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineOSProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePatch.cs index 4f33d5d067f62..f14d66f37f9f1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Models; using Azure.ResourceManager.Resources.Models; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePatchStatus.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePatchStatus.cs index 3ad50930974d1..20200b87a6335 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePatchStatus.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePatchStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressConfiguration.cs index ea7ca91063bbe..540f97de66590 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePublicIPAddressConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandInstanceView.cs index 652b002d6d5a0..73a69d71bafd2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandResult.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandResult.cs index 401e917b2681a..72f34b8342670 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandResult.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandUpdate.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandUpdate.cs index 3a8273bcbc2bb..9f4ececb25915 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandUpdate.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineRunCommandUpdate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionPatch.cs index e377da9105137..a6668e37a6d5b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionProfile.cs index a8c050c1618ee..849b2d05f815e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionProfile.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs index 6ce4ee834961b..6fc95724f8452 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetIPConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetInstanceView.cs index b4151f84ecff4..08736a69d6cc8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetInstanceViewStatusesSummary.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetInstanceViewStatusesSummary.cs index a8fed4ccfbf23..66cd8ec082bbf 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetInstanceViewStatusesSummary.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetInstanceViewStatusesSummary.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs index d246918df8630..123bc145ca385 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfigurationDnsSettings.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfigurationDnsSettings.cs index 0f4b384477296..6eb7a0e17b65a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfigurationDnsSettings.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfigurationDnsSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkProfile.cs index 2497d0834c13e..c768bec2020da 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkProfile.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetOSDisk.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetOSDisk.cs index a77b228ca3785..a6eac2ca36b5f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetOSDisk.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetOSDisk.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetOSProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetOSProfile.cs index 7f2b3b799ba2d..055f68e4d3d45 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetOSProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetOSProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfiguration.cs index 95244572c3316..c45b79a173bea 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetReimageContent.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetReimageContent.cs index 13adb4e1c8f92..f8ca886849a30 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetReimageContent.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetReimageContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.cs index 537f2328fcfc6..6b67e489334b8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateIPConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateIPConfiguration.cs index 05603d3a55b21..f47efb3f07653 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateIPConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateIPConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs index 1012a34e350e5..0fd3f67ca2fe0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkProfile.cs index 3df8038944f49..a4fcc1728b5a2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkProfile.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateOSDisk.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateOSDisk.cs index 4d14d560a23f1..24ead242837a6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateOSDisk.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateOSDisk.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateOSProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateOSProfile.cs index 6698f0e7fc13d..c593252e96e39 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateOSProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateOSProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateStorageProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateStorageProfile.cs index 1ce5694a4ea4e..72405b0517f11 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateStorageProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateStorageProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionsListResult.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionsListResult.cs index 222b58ed78e11..cc434f7321790 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionsListResult.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionsSummary.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionsSummary.cs index ba795c7b0ebcf..56336be55b69b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionsSummary.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionsSummary.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceIds.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceIds.cs index 75a1666b6018a..05e0f06d2e125 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceIds.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceIds.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.cs index 09ae6b47c3397..d227c86c72bd5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmInstanceView.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmNetworkProfileConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmNetworkProfileConfiguration.cs index 605601267a6c6..dc45dad423a37 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmNetworkProfileConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmNetworkProfileConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineSizeListResult.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineSizeListResult.cs index 7b670c22806df..73385616dfe68 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineSizeListResult.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineSizeListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineSoftwarePatchProperties.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineSoftwarePatchProperties.cs index 6c50715d56ed0..4a848a936a0bc 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineSoftwarePatchProperties.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineSoftwarePatchProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineStorageProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineStorageProfile.cs index 1276fdd2001c2..e5844928ad8eb 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineStorageProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineStorageProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VmImagesInEdgeZoneListResult.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VmImagesInEdgeZoneListResult.cs index 5aadf7853907f..749945e78461b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VmImagesInEdgeZoneListResult.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VmImagesInEdgeZoneListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WinRMConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WinRMConfiguration.cs index 084b49ff1e1e7..8afe4fd533b29 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WinRMConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WinRMConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsConfiguration.cs index c94aeb7a0de11..701e72979f90a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsParameters.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsParameters.cs index d908585a93c2f..b3344a3abb33b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsParameters.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsParameters.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Compute; namespace Azure.ResourceManager.Compute.Models { diff --git a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Internal/ChangeTrackingList.cs b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..45c80ae47576d --- /dev/null +++ b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ConfidentialLedger +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ConfidentialLedgerList.cs b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ConfidentialLedgerList.cs index cc3602ba1f5f7..2af09b9abe7b2 100644 --- a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ConfidentialLedgerList.cs +++ b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ConfidentialLedgerList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ConfidentialLedger; namespace Azure.ResourceManager.ConfidentialLedger.Models diff --git a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ConfidentialLedgerProperties.cs b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ConfidentialLedgerProperties.cs index ebf331df7f083..c7ae57299d65b 100644 --- a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ConfidentialLedgerProperties.cs +++ b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ConfidentialLedgerProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ConfidentialLedger; namespace Azure.ResourceManager.ConfidentialLedger.Models { diff --git a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ManagedCcfList.cs b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ManagedCcfList.cs index a425b527a776e..f7a3154727c58 100644 --- a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ManagedCcfList.cs +++ b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ManagedCcfList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ConfidentialLedger; namespace Azure.ResourceManager.ConfidentialLedger.Models diff --git a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ManagedCcfProperties.cs b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ManagedCcfProperties.cs index 7f3984b4bf96f..0bc678e4759e0 100644 --- a/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ManagedCcfProperties.cs +++ b/sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/src/Generated/Models/ManagedCcfProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ConfidentialLedger; namespace Azure.ResourceManager.ConfidentialLedger.Models { diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Internal/ChangeTrackingList.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..27fca68b32559 --- /dev/null +++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Confluent +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConfluentAgreementListResult.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConfluentAgreementListResult.cs index b3ec7c3e03d48..f7f6c642e80e9 100644 --- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConfluentAgreementListResult.cs +++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConfluentAgreementListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Confluent; namespace Azure.ResourceManager.Confluent.Models { diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConfluentOrganizationListResult.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConfluentOrganizationListResult.cs index 5597a8e27a191..d39e74c7cf1bc 100644 --- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConfluentOrganizationListResult.cs +++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConfluentOrganizationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Confluent; namespace Azure.ResourceManager.Confluent.Models diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Internal/ChangeTrackingList.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..4564ab6b69aa9 --- /dev/null +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ConnectedVMwarevSphere +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/NicIPSettings.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/NicIPSettings.cs index ecee774486c35..ec171d3ad3d30 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/NicIPSettings.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/NicIPSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ConnectedVMwarevSphere; namespace Azure.ResourceManager.ConnectedVMwarevSphere.Models { diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/StorageProfileUpdate.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/StorageProfileUpdate.cs index 672773250c0be..36f8bca606e97 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/StorageProfileUpdate.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/StorageProfileUpdate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ConnectedVMwarevSphere; namespace Azure.ResourceManager.ConnectedVMwarevSphere.Models { diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareNetworkInterface.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareNetworkInterface.cs index b2a667a375203..bafaad1fe041f 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareNetworkInterface.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareNetworkInterface.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ConnectedVMwarevSphere; namespace Azure.ResourceManager.ConnectedVMwarevSphere.Models { diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareNetworkProfile.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareNetworkProfile.cs index 4ef74befb1d69..06a59bf56a95b 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareNetworkProfile.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareNetworkProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ConnectedVMwarevSphere; namespace Azure.ResourceManager.ConnectedVMwarevSphere.Models { diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareNetworkProfileUpdate.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareNetworkProfileUpdate.cs index f4a63c75a02e1..3458fbcb00775 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareNetworkProfileUpdate.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareNetworkProfileUpdate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ConnectedVMwarevSphere; namespace Azure.ResourceManager.ConnectedVMwarevSphere.Models { diff --git a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareStorageProfile.cs b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareStorageProfile.cs index 4a928b77e5574..f243ec655873e 100644 --- a/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareStorageProfile.cs +++ b/sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/src/Generated/Models/VMwareStorageProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ConnectedVMwarevSphere; namespace Azure.ResourceManager.ConnectedVMwarevSphere.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Internal/ChangeTrackingList.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..2d37886e25a11 --- /dev/null +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Consumption +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetAssociatedNotification.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetAssociatedNotification.cs index ba0e12479fb65..6a35d5c2d5b93 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetAssociatedNotification.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetAssociatedNotification.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetsListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetsListResult.cs index 87ea77f545600..ed68cae9d4dbe 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetsListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ChargesListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ChargesListResult.cs index 0a2005111b823..51a543e7c9df8 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ChargesListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ChargesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAggregatedCostResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAggregatedCostResult.cs index 99acd797a0f48..e072433ed56ab 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAggregatedCostResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAggregatedCostResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Consumption; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Consumption.Models diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceResult.cs index 7668750207478..8fc4ad9053b71 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Consumption; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Consumption.Models diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBudgetFilter.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBudgetFilter.cs index bcaea05e2594c..286b219c93213 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBudgetFilter.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBudgetFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyReservationRecommendation.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyReservationRecommendation.cs index a41320ee0e5c4..03fc385863386 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyReservationRecommendation.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyReservationRecommendation.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Consumption; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Consumption.Models diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationRecommendation.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationRecommendation.cs index 9436e96b8a37c..eb4fbfbf2f09d 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationRecommendation.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationRecommendation.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Consumption; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Consumption.Models diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationTransaction.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationTransaction.cs index 7794ec48ba106..78fcbbf1a5a20 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationTransaction.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationTransaction.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Consumption; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Consumption.Models diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationTransaction.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationTransaction.cs index 1508e800511f5..1d298b3d863eb 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationTransaction.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationTransaction.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Consumption; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Consumption.Models diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionResourceProperties.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionResourceProperties.cs index aa9799a52b3fd..19612762643bc 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionResourceProperties.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionResourceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionSavingsProperties.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionSavingsProperties.cs index 9f8cb382c1654..71f4a3db44426 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionSavingsProperties.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionSavingsProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTag.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTag.cs index b116fbd635218..380bf52b42138 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTag.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTag.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTagsResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTagsResult.cs index 561de27a0c912..32b7662a8c4c5 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTagsResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTagsResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Consumption; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Consumption.Models diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionUsageProperties.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionUsageProperties.cs index 72ff3a4fdd0be..fe676b511da90 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionUsageProperties.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionUsageProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Events.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Events.cs index 6189d32551353..b31777b89e62e 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Events.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Events.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Lots.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Lots.cs index 0dee9f868b5dd..740ed4e7d8057 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Lots.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Lots.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/MarketplacesListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/MarketplacesListResult.cs index e4a0cc0e7d86f..523b6ed8c69b9 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/MarketplacesListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/MarketplacesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ModernReservationTransactionsListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ModernReservationTransactionsListResult.cs index 9917071299810..cd6bd8529cd7f 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ModernReservationTransactionsListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ModernReservationTransactionsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetResult.cs index fa4c7a11b6606..15d867e15267f 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Consumption; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Consumption.Models diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationDetailsListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationDetailsListResult.cs index 5ec49082b6e50..46f73c2b62db0 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationDetailsListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationDetailsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationRecommendationsListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationRecommendationsListResult.cs index 5fc20e833942b..fc20320ab50b0 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationRecommendationsListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationRecommendationsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationSummariesListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationSummariesListResult.cs index 430d86d7676a2..33c7ab0b2ec24 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationSummariesListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationSummariesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationTransactionsListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationTransactionsListResult.cs index 5a3389d370c97..b26ac473bd3ea 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationTransactionsListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationTransactionsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/UsageDetailsListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/UsageDetailsListResult.cs index d7462f0628292..863ada5a5c9ab 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/UsageDetailsListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/UsageDetailsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Consumption; namespace Azure.ResourceManager.Consumption.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Internal/ChangeTrackingList.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..7daa8f9009855 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.AppContainers +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/AllowedAudiencesValidation.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/AllowedAudiencesValidation.cs index 3409c1869482d..9de47138f32db 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/AllowedAudiencesValidation.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/AllowedAudiencesValidation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ConnectedEnvironmentCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ConnectedEnvironmentCollection.cs index 3af6c98d66c8d..78bfbd304b2d8 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ConnectedEnvironmentCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ConnectedEnvironmentCollection.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAllowedPrincipals.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAllowedPrincipals.cs index 7de283ef46430..ba5af6b6216cb 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAllowedPrincipals.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAllowedPrincipals.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryLoginConfiguration.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryLoginConfiguration.cs index 35727abd64c9a..ac71df049c3b8 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryLoginConfiguration.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryLoginConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryValidationConfiguration.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryValidationConfiguration.cs index fdf97d9599655..b0712fff84f62 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryValidationConfiguration.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppAzureActiveDirectoryValidationConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppBaseContainer.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppBaseContainer.cs index c6aa007b9f928..5c1f90baa6e50 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppBaseContainer.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppBaseContainer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCertificateProperties.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCertificateProperties.cs index b917388ab26a0..abe1df3b1b009 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCertificateProperties.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCertificateProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConfiguration.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConfiguration.cs index b9fcfb899255f..a235562ea9c2b 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConfiguration.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppContainer.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppContainer.cs index 3bfb775ec5a56..493cbb5797d1d 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppContainer.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppContainer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCorsPolicy.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCorsPolicy.cs index cc111ff8f508f..160de0d449848 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCorsPolicy.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCorsPolicy.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCustomDomainVerificationFailureInfo.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCustomDomainVerificationFailureInfo.cs index 76235708148ce..0e13626732f51 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCustomDomainVerificationFailureInfo.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCustomDomainVerificationFailureInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCustomHostnameAnalysisResult.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCustomHostnameAnalysisResult.cs index 291552fa56ee4..b26d42de781ab 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCustomHostnameAnalysisResult.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCustomHostnameAnalysisResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCustomScaleRule.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCustomScaleRule.cs index 5e832878d99bd..eaffdc024c8b6 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCustomScaleRule.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCustomScaleRule.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDefaultAuthorizationPolicy.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDefaultAuthorizationPolicy.cs index b68a852475892..1e83e1bbbc740 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDefaultAuthorizationPolicy.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDefaultAuthorizationPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticDataProviderMetadata.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticDataProviderMetadata.cs index aadd521300575..979cecaeb1699 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticDataProviderMetadata.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticDataProviderMetadata.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticDataTableResult.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticDataTableResult.cs index ae1cce9ff4ce9..1a5106e022c3f 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticDataTableResult.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticDataTableResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticsMetadata.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticsMetadata.cs index 28f7dbfbf3c93..177de0d533d3b 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticsMetadata.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticsMetadata.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppContainers; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppContainers.Models diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticsProperties.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticsProperties.cs index 44f9a2688cb9e..c603f7379f316 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticsProperties.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppDiagnosticsProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppGlobalValidation.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppGlobalValidation.cs index 13762e59796f5..e26d24cb3370e 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppGlobalValidation.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppGlobalValidation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppHttpRequestInfo.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppHttpRequestInfo.cs index 690cf6300e950..52705ba212463 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppHttpRequestInfo.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppHttpRequestInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppHttpScaleRule.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppHttpScaleRule.cs index 56f588f77c5d0..549b974c9ef7d 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppHttpScaleRule.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppHttpScaleRule.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppIngressConfiguration.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppIngressConfiguration.cs index 4c92d41921765..975e4c9c51be9 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppIngressConfiguration.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppIngressConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs index 0217a2bba195f..d257ba8f177e2 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionTemplate.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionTemplate.cs index 8d9d99c5d4d44..8223f7185f4fc 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionTemplate.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionTemplate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobPatchProperties.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobPatchProperties.cs index ca862204cccf6..cafede5beb6e3 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobPatchProperties.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobPatchProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScale.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScale.cs index e9c35001dd929..17f881493a8a9 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScale.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScale.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScaleRule.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScaleRule.cs index 271ac98315f5f..0adcd15375e97 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScaleRule.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScaleRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobTemplate.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobTemplate.cs index 09797df6f5d4b..08f07a68fa7a5 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobTemplate.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobTemplate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJwtClaimChecks.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJwtClaimChecks.cs index 37f3ea3abb753..fee953a30de82 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJwtClaimChecks.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJwtClaimChecks.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppLogin.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppLogin.cs index 9598b9d7dff3b..75a21422c5fec 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppLogin.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppLogin.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectLogin.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectLogin.cs index 137f61fe21137..e6c24a2dab5d3 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectLogin.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppOpenIdConnectLogin.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppQueueScaleRule.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppQueueScaleRule.cs index a9c013b0f04e5..4ebca132abd0e 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppQueueScaleRule.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppQueueScaleRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppScale.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppScale.cs index 479222e99bc4f..0bba5e493da00 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppScale.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppScale.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTcpScaleRule.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTcpScaleRule.cs index 3e50bcbbc2fa9..ed4f063a5c6e4 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTcpScaleRule.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTcpScaleRule.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.cs index d13d32b7b4e1e..250f777fc17d4 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolume.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolume.cs index 219addd170fc3..3f9d675acd233 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolume.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolume.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobExecutionContainer.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobExecutionContainer.cs index 9767e0809713c..1e55f553351bf 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobExecutionContainer.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobExecutionContainer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/LoginScopes.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/LoginScopes.cs index ce5468da28f5e..8dd03eee88968 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/LoginScopes.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/LoginScopes.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Internal/ChangeTrackingList.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..6d0520b8634e0 --- /dev/null +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ContainerInstance +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/CachedImagesListResult.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/CachedImagesListResult.cs index c37066470dbaa..5afb475fb5891 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/CachedImagesListResult.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/CachedImagesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerInstance; namespace Azure.ResourceManager.ContainerInstance.Models { diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerCapabilitiesListResult.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerCapabilitiesListResult.cs index b59ebade7fad7..9c7f8c14ee37e 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerCapabilitiesListResult.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerCapabilitiesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerInstance; namespace Azure.ResourceManager.ContainerInstance.Models { diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerExec.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerExec.cs index a55a792fae5f7..cd270913f7536 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerExec.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerExec.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerInstance; namespace Azure.ResourceManager.ContainerInstance.Models { diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupInstanceView.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupInstanceView.cs index cbd35d38b396b..71d455a174ca4 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupInstanceView.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerInstance; namespace Azure.ResourceManager.ContainerInstance.Models { diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupListResult.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupListResult.cs index e9be154e54b64..eace7b3ee2e63 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupListResult.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerInstance; namespace Azure.ResourceManager.ContainerInstance.Models diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupPatch.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupPatch.cs index 6e8ee8a55000f..cd296c184e9c2 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupPatch.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerGroupPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ContainerInstance; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.ContainerInstance.Models diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerHttpGet.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerHttpGet.cs index 8adf0885d3d35..5c97de3b60d74 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerHttpGet.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerHttpGet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerInstance; namespace Azure.ResourceManager.ContainerInstance.Models { diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerInstanceContainer.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerInstanceContainer.cs index 5cd4a0a46c13d..fd1404b8994f2 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerInstanceContainer.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerInstanceContainer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerInstance; namespace Azure.ResourceManager.ContainerInstance.Models { diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerInstanceUsageListResult.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerInstanceUsageListResult.cs index 326b3f5c8c169..336c97bc0bf98 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerInstanceUsageListResult.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerInstanceUsageListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerInstance; namespace Azure.ResourceManager.ContainerInstance.Models { diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerInstanceView.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerInstanceView.cs index 8d8043c73b3c4..99fcefe99f049 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerInstanceView.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerInstance; namespace Azure.ResourceManager.ContainerInstance.Models { diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerSecurityContextCapabilitiesDefinition.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerSecurityContextCapabilitiesDefinition.cs index 9fbc82da2f077..6f889e0f85a8b 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerSecurityContextCapabilitiesDefinition.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/ContainerSecurityContextCapabilitiesDefinition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerInstance; namespace Azure.ResourceManager.ContainerInstance.Models { diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/InitContainerDefinitionContent.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/InitContainerDefinitionContent.cs index 9013255ce7e21..7293fa5899102 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/InitContainerDefinitionContent.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/InitContainerDefinitionContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerInstance; namespace Azure.ResourceManager.ContainerInstance.Models { diff --git a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/InitContainerPropertiesDefinitionInstanceView.cs b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/InitContainerPropertiesDefinitionInstanceView.cs index b9dbd3554fd26..6640c6f046496 100644 --- a/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/InitContainerPropertiesDefinitionInstanceView.cs +++ b/sdk/containerinstance/Azure.ResourceManager.ContainerInstance/src/Generated/Models/InitContainerPropertiesDefinitionInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerInstance; namespace Azure.ResourceManager.ContainerInstance.Models { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Internal/ChangeTrackingList.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..705fc65162710 --- /dev/null +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Containers.ContainerRegistry +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrors.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrors.Serialization.cs index 871638328a89d..1e62a29757aec 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrors.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrors.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrors.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrors.cs index 303a178ced01e..3abc8f061addb 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrors.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrors.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrManifests.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrManifests.Serialization.cs index 50196475a0024..c41a56597c327 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrManifests.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrManifests.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrManifests.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrManifests.cs index eb2078d258712..a9e16b087ef27 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrManifests.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrManifests.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestProperties.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestProperties.cs index a3e5a5f01c542..d3152fc45dac1 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestProperties.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestProperties.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/DeleteRepositoryResult.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/DeleteRepositoryResult.cs index 301ef7b0cab2c..090057c932a78 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/DeleteRepositoryResult.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/DeleteRepositoryResult.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestAttributesBase.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestAttributesBase.cs index 59ea66a1dc344..39c1359aaf70a 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestAttributesBase.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestAttributesBase.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestAttributesManifest.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestAttributesManifest.cs index bae5eaf477b6c..f75f7169f4ec4 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestAttributesManifest.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestAttributesManifest.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestList.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestList.Serialization.cs index 21ae86a847de5..07459747dbe91 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestList.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestList.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestList.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestList.cs index 41655391088ab..7cceca89eb2a2 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestList.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestList.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWrapper.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWrapper.Serialization.cs index d622aff12fab2..26e231258fe63 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWrapper.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWrapper.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWrapper.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWrapper.cs index 4e061ab9b58fc..a2ac124d157ee 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWrapper.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWrapper.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OCIIndex.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OCIIndex.Serialization.cs index dc5b04b5b64f2..d94a3fd6bde58 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OCIIndex.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OCIIndex.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OCIIndex.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OCIIndex.cs index d2f09ee9b246c..987e9020e7196 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OCIIndex.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OCIIndex.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciDescriptor.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciDescriptor.cs index d16357f851433..21e064cf13759 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciDescriptor.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciDescriptor.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciImageManifest.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciImageManifest.cs index fcfed935fa654..11b42be542e04 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciImageManifest.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciImageManifest.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Platform.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Platform.Serialization.cs index ef2ae81fe5d57..0312151e3dac6 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Platform.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Platform.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Platform.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Platform.cs index 8fb138741e768..b51372e52d313 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Platform.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Platform.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Repositories.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Repositories.Serialization.cs index 5a7d1bd6b3ea7..eb3ebba6bcac0 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Repositories.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Repositories.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Repositories.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Repositories.cs index 2e5c8574f493c..8ebff09dde600 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Repositories.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Repositories.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/RepositoryTags.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/RepositoryTags.cs index fbc3de06eb321..0093650d7af64 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/RepositoryTags.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/RepositoryTags.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V1Manifest.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V1Manifest.Serialization.cs index 7474b0581bdf9..6eb0d9555ab1b 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V1Manifest.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V1Manifest.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V1Manifest.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V1Manifest.cs index 9f28c52cb4d7a..dc7a9908c5137 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V1Manifest.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V1Manifest.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V2Manifest.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V2Manifest.Serialization.cs index 3ea46121bcef4..e035589eab907 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V2Manifest.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V2Manifest.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V2Manifest.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V2Manifest.cs index 559b6331ea688..2acde1bc0578f 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V2Manifest.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V2Manifest.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Containers.ContainerRegistry { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Internal/ChangeTrackingList.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..3063939d29312 --- /dev/null +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ContainerRegistry +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryAgentPoolListResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryAgentPoolListResult.cs index 571c7b1891d5b..ac3265d04e69c 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryAgentPoolListResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryAgentPoolListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildContent.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildContent.cs index 010d83f6d3677..e326eee801237 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildContent.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.cs index 6df0e3d375260..0eaee4acfd6f9 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStepUpdateContent.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStepUpdateContent.cs index 720dfe4664bfc..b6599fc5aa6b9 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStepUpdateContent.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStepUpdateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskRunContent.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskRunContent.cs index 97ace9fddc370..a24251078a571 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskRunContent.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskRunContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.cs index 0fa04bd7d6f02..eaeaadce30cb4 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStepUpdateContent.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStepUpdateContent.cs index d917f4ea15a8f..b0eb061f83e94 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStepUpdateContent.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStepUpdateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskRunContent.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskRunContent.cs index fd2ac72977be7..99623012def84 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskRunContent.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskRunContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.cs index 8495e66435deb..080f8e1fd3171 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStepUpdateContent.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStepUpdateContent.cs index 9205ab5f84784..d0a1358e3db96 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStepUpdateContent.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStepUpdateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryGenerateCredentialsResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryGenerateCredentialsResult.cs index 138a19cefc82c..e12fd3aa9fa10 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryGenerateCredentialsResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryGenerateCredentialsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryImageUpdateTrigger.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryImageUpdateTrigger.cs index 0f7395f6dcc3b..a71f47e25ab5d 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryImageUpdateTrigger.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryImageUpdateTrigger.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryImportImageContent.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryImportImageContent.cs index ae5990735a750..9206a8c0fd400 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryImportImageContent.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryImportImageContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryListCredentialsResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryListCredentialsResult.cs index 5c8290fe3f5ca..9e91232f07034 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryListCredentialsResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryListCredentialsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryListResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryListResult.cs index c936f4d4becce..0be640614646f 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryListResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryNetworkRuleSet.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryNetworkRuleSet.cs index 23ea8b4deb079..fd75b9aab8514 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryNetworkRuleSet.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryNetworkRuleSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryOverrideTaskStepProperties.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryOverrideTaskStepProperties.cs index 7227bf0fde3fc..bc4528c464261 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryOverrideTaskStepProperties.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryOverrideTaskStepProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateEndpointConnectionListResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateEndpointConnectionListResult.cs index 676af69817977..53be9e461af34 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateEndpointConnectionListResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateLinkResourceListResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateLinkResourceListResult.cs index 088ab0266a9d5..997d2668b011a 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateLinkResourceListResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryReplicationListResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryReplicationListResult.cs index 437cfc44467e3..321fbc699cd77 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryReplicationListResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryReplicationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryRunListResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryRunListResult.cs index 6559375a96135..b40842544beb8 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryRunListResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryRunListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistrySourceTriggerUpdateContent.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistrySourceTriggerUpdateContent.cs index 8fb25ba18d55f..6504eeea70b7d 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistrySourceTriggerUpdateContent.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistrySourceTriggerUpdateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskListResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskListResult.cs index 7466344b37e06..c1c7d55031845 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskListResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskRunListResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskRunListResult.cs index 7ee8d0eb469e6..a2c7d553513cd 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskRunListResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskRunListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.cs index 458036722b7d1..2d44f1a1e02b3 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenCredentials.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenCredentials.cs index 64455c1786d70..4a339d177f689 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenCredentials.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenCredentials.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenListResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenListResult.cs index 9b25c25eb4537..1428d69825ff0 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenListResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTokenListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTriggerProperties.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTriggerProperties.cs index 489ae6e716647..7d80de2c56371 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTriggerProperties.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTriggerProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTriggerUpdateContent.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTriggerUpdateContent.cs index 537c0bca921c3..f23e415b70d39 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTriggerUpdateContent.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTriggerUpdateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryUsageListResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryUsageListResult.cs index 9e4700e21851b..a8176d8008793 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryUsageListResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryUsageListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookCreateOrUpdateContent.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookCreateOrUpdateContent.cs index afbb81f40eeb6..8be9229eff134 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookCreateOrUpdateContent.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookCreateOrUpdateContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookEventListResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookEventListResult.cs index 7f36b358c2f21..77fed0d0fbf12 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookEventListResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookEventListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookListResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookListResult.cs index 73cc51ccd35ef..f74c05ba64880 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookListResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookPatch.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookPatch.cs index 00fd270e75a2d..37ada7a59c330 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookPatch.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryWebhookPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ScopeMapListResult.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ScopeMapListResult.cs index 465f22f07361a..914e2dd694602 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ScopeMapListResult.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ScopeMapListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ScopeMapPatch.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ScopeMapPatch.cs index 676cb744edf19..be1f5d269790f 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ScopeMapPatch.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ScopeMapPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerRegistry; namespace Azure.ResourceManager.ContainerRegistry.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Internal/ChangeTrackingList.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..9f21feb56895f --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ContainerService +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolAvailableVersions.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolAvailableVersions.cs index 70fc820184794..ff136c2d8c3bd 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolAvailableVersions.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolAvailableVersions.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ContainerService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.ContainerService.Models diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.cs index 245e6defc854a..da425f13e150a 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolSnapshotListResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolSnapshotListResult.cs index acb35e05b6f92..dc1d779281456 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolSnapshotListResult.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolSnapshotListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/CompatibleVersions.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/CompatibleVersions.cs index fdeb5fd6a1fbd..d7915aaa1b87c 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/CompatibleVersions.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/CompatibleVersions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceAgentPoolListResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceAgentPoolListResult.cs index f6268e7710c75..599c4834ae8a0 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceAgentPoolListResult.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceAgentPoolListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceEndpointDependency.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceEndpointDependency.cs index 73bae0831df5e..df703c7332b3d 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceEndpointDependency.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceEndpointDependency.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceConfigurationListResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceConfigurationListResult.cs index 4fe105359970f..bcb39ade477bb 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceConfigurationListResult.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.cs index 4c8d6abff21e9..5e72c75bd9aee 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs index 1dbea759df9ac..4e1f295ac9395 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceOutboundEnvironmentEndpoint.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceOutboundEnvironmentEndpoint.cs index 8fc8b0ca631d2..a1bd5fed686c1 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceOutboundEnvironmentEndpoint.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceOutboundEnvironmentEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateEndpointConnectionListResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateEndpointConnectionListResult.cs index a1309f3dc500c..1e53950308d99 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateEndpointConnectionListResult.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateLinkResourceData.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateLinkResourceData.cs index 8793a4482917f..f128bf81e7a2e 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateLinkResourceData.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateLinkResourceData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateLinkResourcesListResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateLinkResourcesListResult.cs index 349cca4b64848..a789ca91c0c11 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateLinkResourcesListResult.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateLinkResourcesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTimeInWeek.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTimeInWeek.cs index 7c0c5b35e4207..4da95e54c0c6b 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTimeInWeek.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTimeInWeek.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRole.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRole.cs index fa7a703a1af90..18b55bb961721 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRole.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRole.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleRule.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleRule.cs index 565575e1c93c8..eef08c8126f77 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleRule.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/IstioComponents.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/IstioComponents.cs index 49fb8b7943140..c779f72e760e0 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/IstioComponents.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/IstioComponents.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/IstioServiceMesh.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/IstioServiceMesh.cs index e926c08eac369..ccdaeee32c434 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/IstioServiceMesh.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/IstioServiceMesh.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubeletConfig.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubeletConfig.cs index 0cd2a21eb91c7..bf646678c9266 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubeletConfig.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubeletConfig.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubernetesPatchVersion.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubernetesPatchVersion.cs index 4ae44b4507cd9..62afbbf1e45cd 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubernetesPatchVersion.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubernetesPatchVersion.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubernetesVersionCapabilities.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubernetesVersionCapabilities.cs index a20daeb560a2e..8140b70a6d7a5 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubernetesVersionCapabilities.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubernetesVersionCapabilities.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubernetesVersionListResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubernetesVersionListResult.cs index a69d9162bd204..9f877978498d0 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubernetesVersionListResult.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubernetesVersionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAadProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAadProfile.cs index 8ded8df5fb193..dd30acce9b389 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAadProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAadProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs index 865ae8a4b00bb..5f82e14ae9641 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.cs index 724524ecadc0d..1e4a3cb11882f 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterCredentials.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterCredentials.cs index 44389aa97afa5..cfdd290c181dd 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterCredentials.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterCredentials.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.cs index 3f7d9e5955e03..46ae42562a7a3 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterListResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterListResult.cs index 6d30f4cccf021..4d21fe314f2e4 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterListResult.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs index bddec2a284658..02223e13639c0 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.ContainerService.Models diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPPrefixes.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPPrefixes.cs index e3e69398ac292..592f5daffa0c5 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPPrefixes.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPPrefixes.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.ContainerService.Models diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPs.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPs.cs index 0e836d497df3e..f839a9d3014f2 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPs.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPs.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.ContainerService.Models diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNatGatewayProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNatGatewayProfile.cs index d7aa8dd9c6095..d2a354c10698d 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNatGatewayProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNatGatewayProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.ContainerService.Models diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPodIdentityProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPodIdentityProfile.cs index f153f0eda48d1..a7db485b1b90a 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPodIdentityProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPodIdentityProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPoolUpgradeProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPoolUpgradeProfile.cs index 4bff501286a13..cbf57e67a360e 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPoolUpgradeProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPoolUpgradeProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevision.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevision.cs index acff8e404c4f7..2cf5e4ed184c2 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevision.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevision.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevisionProfileList.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevisionProfileList.cs index df9b3486a6e1d..9c209c415d74f 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevisionProfileList.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevisionProfileList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevisionProfileProperties.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevisionProfileProperties.cs index 36dcb33146c4d..4bfc2079ef807 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevisionProfileProperties.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshRevisionProfileProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshUpgradeProfileList.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshUpgradeProfileList.cs index 94ec42889d5a2..8a42e6d1b8cf7 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshUpgradeProfileList.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/MeshUpgradeProfileList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleBindingListResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleBindingListResult.cs index 41a276d3f12ee..73663b2e9e8e8 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleBindingListResult.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleBindingListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleListResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleListResult.cs index cf211fc18f474..c93d0e000c0f4 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleListResult.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerService; namespace Azure.ResourceManager.ContainerService.Models { diff --git a/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AnalyzeImageOptions.cs b/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AnalyzeImageOptions.cs index d521271339dc1..792e6d3692aec 100644 --- a/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AnalyzeImageOptions.cs +++ b/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AnalyzeImageOptions.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.ContentSafety { diff --git a/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AnalyzeTextOptions.cs b/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AnalyzeTextOptions.cs index e739f3c5877a7..4781366e7160d 100644 --- a/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AnalyzeTextOptions.cs +++ b/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AnalyzeTextOptions.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.ContentSafety { diff --git a/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AnalyzeTextResult.cs b/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AnalyzeTextResult.cs index a93b361d5736e..2f6aa105755ec 100644 --- a/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AnalyzeTextResult.cs +++ b/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AnalyzeTextResult.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.ContentSafety { diff --git a/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Internal/ChangeTrackingList.cs b/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..5646d5303ef0a --- /dev/null +++ b/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.ContentSafety +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} 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 d2927b7a41332..762f1a87898f5 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Azure.Core.TestFramework.csproj +++ b/sdk/core/Azure.Core.TestFramework/src/Azure.Core.TestFramework.csproj @@ -33,6 +33,7 @@ + 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 536c79746e4d1..a64949f0a4ff0 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 @@ -15,6 +15,7 @@ + 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 e83cb32503781..cf778bd8c567e 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 @@ -23,6 +23,7 @@ + diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Internal/ChangeTrackingList.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..28a1e66b7a643 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.CosmosDB +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/AuthenticationMethodLdapProperties.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/AuthenticationMethodLdapProperties.cs index fa4e22d42c83b..58d05eff83cce 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/AuthenticationMethodLdapProperties.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/AuthenticationMethodLdapProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterDataCenterNodeItem.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterDataCenterNodeItem.cs index e9557528bdf2a..75db8be78e301 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterDataCenterNodeItem.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterDataCenterNodeItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterListResult.cs index 00834f5d791e4..6929ab4dcff34 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterProperties.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterProperties.cs index b86ca0bc967a8..486c5dc3e8dfb 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterProperties.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterPublicStatus.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterPublicStatus.cs index ab180ce5093bc..9d58594cf1e2f 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterPublicStatus.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterPublicStatus.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterPublicStatusDataCentersItem.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterPublicStatusDataCentersItem.cs index bab738f297148..28d4d804b72c5 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterPublicStatusDataCentersItem.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraClusterPublicStatusDataCentersItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraDataCenterListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraDataCenterListResult.cs index edb8e27280d82..4c151f63e4d4a 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraDataCenterListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraDataCenterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraDataCenterProperties.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraDataCenterProperties.cs index b459dd57a0295..2eee871d0e59e 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraDataCenterProperties.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraDataCenterProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraKeyspaceListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraKeyspaceListResult.cs index c1bea294d82c0..fcf03228fe9e0 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraKeyspaceListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraKeyspaceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraSchema.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraSchema.cs index de387c493b5f6..d820fcac44b86 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraSchema.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraSchema.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraTableListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraTableListResult.cs index 1af3be5f59f88..4418feaad60aa 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraTableListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraTableListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraViewListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraViewListResult.cs index 988c69de74e8b..5c411b64ccf1f 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraViewListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CassandraViewListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ClientEncryptionKeysListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ClientEncryptionKeysListResult.cs index 73182181734ba..ba1b3542709c5 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ClientEncryptionKeysListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ClientEncryptionKeysListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountCreateOrUpdateContent.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountCreateOrUpdateContent.cs index 4046a48bb26f4..00102753fba46 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountCreateOrUpdateContent.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountCreateOrUpdateContent.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.ResourceManager.CosmosDB; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountPatch.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountPatch.cs index 8dd3ec62a65e6..f9a4599b229e0 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountPatch.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CosmosDB; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountRestoreParameters.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountRestoreParameters.cs index ec0a43600ca58..1d5c8d60209f0 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountRestoreParameters.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountRestoreParameters.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBBaseMetric.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBBaseMetric.cs index 15bd3eac4ab37..6297bf4656d7e 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBBaseMetric.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBBaseMetric.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBContainerPartitionKey.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBContainerPartitionKey.cs index 060b884354620..851a52fc58127 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBContainerPartitionKey.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBContainerPartitionKey.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIncludedPath.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIncludedPath.cs index 3752d055ec65b..fb0457299642c 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIncludedPath.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIncludedPath.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIndexingPolicy.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIndexingPolicy.cs index bf8320191a668..773601edd49a1 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIndexingPolicy.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIndexingPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBLocationListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBLocationListResult.cs index faee5045c76b3..53967f6a03457 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBLocationListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBLocationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBLocationProperties.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBLocationProperties.cs index 62bb7c33e5f1e..d028ebf875a28 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBLocationProperties.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBLocationProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBMetricDefinition.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBMetricDefinition.cs index 1ec926dc749b8..5f6dc2750544f 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBMetricDefinition.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBMetricDefinition.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBMetricDefinitionsListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBMetricDefinitionsListResult.cs index b18eac412c3cb..c5565bf62df29 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBMetricDefinitionsListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBMetricDefinitionsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBMetricListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBMetricListResult.cs index 468faac6c6f81..896b72e7ceeb5 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBMetricListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBMetricListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPercentileMetric.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPercentileMetric.cs index 5c2c3e9d3edf9..e828376d2305e 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPercentileMetric.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPercentileMetric.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPrivateEndpointConnectionListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPrivateEndpointConnectionListResult.cs index 715641bff206d..3db454ef72bc5 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPrivateEndpointConnectionListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPrivateLinkResourceListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPrivateLinkResourceListResult.cs index 397e64c89f0c5..2dd483390a993 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPrivateLinkResourceListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBServiceListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBServiceListResult.cs index 1ce30f67ff97b..f8090d888c2b8 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBServiceListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBServiceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlContainerListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlContainerListResult.cs index cb7b7b0028610..65067c90a9bda 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlContainerListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlContainerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlDatabaseListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlDatabaseListResult.cs index 65d9cc8ba5a49..7a799e4742d6f 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlDatabaseListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlDatabaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleAssignmentList.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleAssignmentList.cs index d479bc0b22431..7e4c3183417e9 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleAssignmentList.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleAssignmentList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionCreateOrUpdateContent.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionCreateOrUpdateContent.cs index c89b478846fe3..6e9ad541f7e55 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionCreateOrUpdateContent.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionCreateOrUpdateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionList.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionList.cs index 3a107e59c7f40..7da4d36537d41 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionList.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRoleDefinitionList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRolePermission.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRolePermission.cs index 2fbd392b30f1c..4e5d29e8d96e4 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRolePermission.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlRolePermission.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlStoredProcedureListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlStoredProcedureListResult.cs index f380a45a475db..5c989f23142ab 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlStoredProcedureListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlStoredProcedureListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlTriggerListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlTriggerListResult.cs index 2ce3a72697878..6d820168a8658 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlTriggerListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlTriggerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlUserDefinedFunctionListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlUserDefinedFunctionListResult.cs index 6b323feb5b815..7e590f3b9adb6 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlUserDefinedFunctionListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBSqlUserDefinedFunctionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBTableListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBTableListResult.cs index e1703efe04999..af8625bd77bf6 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBTableListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBTableListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBUniqueKey.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBUniqueKey.cs index 7424993d3e949..baee46183aa97 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBUniqueKey.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBUniqueKey.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBUniqueKeyPolicy.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBUniqueKeyPolicy.cs index 4d0a79a135ccc..4514e265d3fc1 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBUniqueKeyPolicy.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBUniqueKeyPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBUsagesResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBUsagesResult.cs index 25a2d2e084928..937eb172e3006 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBUsagesResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBUsagesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DataTransferJobFeedResults.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DataTransferJobFeedResults.cs index 53eb8ebc78033..ef1033b3603ea 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DataTransferJobFeedResults.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DataTransferJobFeedResults.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DataTransferServiceProperties.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DataTransferServiceProperties.cs index a7a15346d0250..485fdadd0ded9 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DataTransferServiceProperties.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DataTransferServiceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountListConnectionStringsResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountListConnectionStringsResult.cs index 1792f0474c26c..2ef042d149d28 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountListConnectionStringsResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountListConnectionStringsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountsListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountsListResult.cs index 8f1d74531c048..39e81c42a5f7d 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountsListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseRestoreResourceInfo.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseRestoreResourceInfo.cs index fa7d90b9fc901..da6d965c89b1b 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseRestoreResourceInfo.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseRestoreResourceInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/FirewallRuleListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/FirewallRuleListResult.cs index bca79f10bfd8c..e65817f543138 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/FirewallRuleListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/FirewallRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GraphApiComputeServiceProperties.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GraphApiComputeServiceProperties.cs index 81aa6d0e0b780..a70e5f006407b 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GraphApiComputeServiceProperties.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GraphApiComputeServiceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GraphResourcesListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GraphResourcesListResult.cs index 2da59408f6ae9..d400d5c4eadb6 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GraphResourcesListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GraphResourcesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinDatabaseListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinDatabaseListResult.cs index 09b6503c37de1..07812c9d567d1 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinDatabaseListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinDatabaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinDatabaseRestoreResourceInfo.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinDatabaseRestoreResourceInfo.cs index c4f593785461a..3d1ee562bcdcc 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinDatabaseRestoreResourceInfo.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinDatabaseRestoreResourceInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinGraphListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinGraphListResult.cs index b29d1c06c6905..ca0b6f21efa7c 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinGraphListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/GremlinGraphListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListBackups.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListBackups.cs index d094bca22086f..86b21f326cb98 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListBackups.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListBackups.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListConnectionStringsResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListConnectionStringsResult.cs index 114a0612743d5..35088cb37377f 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListConnectionStringsResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListConnectionStringsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MaterializedViewsBuilderServiceProperties.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MaterializedViewsBuilderServiceProperties.cs index 590ec337fc647..e481139364963 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MaterializedViewsBuilderServiceProperties.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MaterializedViewsBuilderServiceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoClusterListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoClusterListResult.cs index 84e82064e4e54..109baf37e9f10 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoClusterListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoClusterPatch.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoClusterPatch.cs index f5a083d2dfea7..f35feec1eeb33 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoClusterPatch.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoClusterPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBCollectionListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBCollectionListResult.cs index 3ee258f476530..d3906ed23806b 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBCollectionListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBCollectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBCollectionResourceInfo.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBCollectionResourceInfo.cs index 5d3818d07fee7..529dfabaf4fa4 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBCollectionResourceInfo.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBCollectionResourceInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBDatabaseListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBDatabaseListResult.cs index 4fa9f23cc9241..e45533e47546b 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBDatabaseListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBDatabaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBPrivilege.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBPrivilege.cs index 6783abd54d101..8b8f6a05b6877 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBPrivilege.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBPrivilege.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionCreateOrUpdateContent.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionCreateOrUpdateContent.cs index bebf844d1e9c2..69f3283889962 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionCreateOrUpdateContent.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionCreateOrUpdateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionListResult.cs index 145710a7f20ff..78f602b1ff593 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBRoleDefinitionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBUserDefinitionCreateOrUpdateContent.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBUserDefinitionCreateOrUpdateContent.cs index 0533b639f1030..08b1b43a5e531 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBUserDefinitionCreateOrUpdateContent.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBUserDefinitionCreateOrUpdateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBUserDefinitionListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBUserDefinitionListResult.cs index 1f6081c28ea12..20ab72691644d 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBUserDefinitionListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoDBUserDefinitionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoIndexKeys.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoIndexKeys.cs index f0d5a5c4b92ab..f1ee508657b66 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoIndexKeys.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/MongoIndexKeys.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PartitionMetricListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PartitionMetricListResult.cs index 70da7ae1786ee..c51ba944c5253 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PartitionMetricListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PartitionMetricListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PartitionUsagesResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PartitionUsagesResult.cs index ce1edea05d2a7..bd10afc62a377 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PartitionUsagesResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PartitionUsagesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PercentileMetricListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PercentileMetricListResult.cs index eb0355e3b68e7..533bb7a83a16e 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PercentileMetricListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PercentileMetricListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PhysicalPartitionStorageInfoCollection.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PhysicalPartitionStorageInfoCollection.cs index 8725b1461b7bd..dd5c4429266e3 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PhysicalPartitionStorageInfoCollection.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PhysicalPartitionStorageInfoCollection.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PhysicalPartitionThroughputInfoProperties.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PhysicalPartitionThroughputInfoProperties.cs index 6def40a515b54..92b3a44ef498c 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PhysicalPartitionThroughputInfoProperties.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/PhysicalPartitionThroughputInfoProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableDatabaseAccountsListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableDatabaseAccountsListResult.cs index c3c4aacaf0b47..399a84498db97 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableDatabaseAccountsListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableDatabaseAccountsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinDatabasesListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinDatabasesListResult.cs index ca0de6a14bf07..01a24c1d5b81f 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinDatabasesListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinDatabasesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinGraphsListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinGraphsListResult.cs index 9cc9ca2c90529..6d324d5696b2f 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinGraphsListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinGraphsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinResourceData.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinResourceData.cs index 40e922835e57b..b949b89fce65d 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinResourceData.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinResourceData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CosmosDB; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinResourcesListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinResourcesListResult.cs index 3d0f9ed371f10..8875fb1b94adf 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinResourcesListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableGremlinResourcesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBCollectionsListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBCollectionsListResult.cs index 3ad730807e75c..fef7d21397ad8 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBCollectionsListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBCollectionsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBDatabasesListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBDatabasesListResult.cs index a581c2f2613e9..ad2352fae4933 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBDatabasesListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBDatabasesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBResourceData.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBResourceData.cs index 491979e050d6e..90f4c1a5a2e12 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBResourceData.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBResourceData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CosmosDB; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBResourcesListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBResourcesListResult.cs index b1d0e445b4946..ecece628448a9 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBResourcesListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableMongoDBResourcesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlContainersListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlContainersListResult.cs index dddff116bb56c..42f55f3c23b58 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlContainersListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlContainersListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlDatabasesListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlDatabasesListResult.cs index 64c1f7ed342a4..0f6db24d3ddf8 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlDatabasesListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlDatabasesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlResourceData.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlResourceData.cs index 947f580b35684..acc32d253f000 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlResourceData.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlResourceData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CosmosDB; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.CosmosDB.Models diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlResourcesListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlResourcesListResult.cs index e17a195e79af2..b90145583f807 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlResourcesListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableSqlResourcesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableTableResourcesListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableTableResourcesListResult.cs index 587a1c02c621a..17adf9b83bc6b 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableTableResourcesListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableTableResourcesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableTablesListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableTablesListResult.cs index 2863594ad27c6..67a349eddb3a3 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableTablesListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/RestorableTablesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/SpatialSpec.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/SpatialSpec.cs index 394bd7cff79eb..53e89b96fc4b3 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/SpatialSpec.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/SpatialSpec.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/SqlDedicatedGatewayServiceProperties.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/SqlDedicatedGatewayServiceProperties.cs index 73358d3ab1d3b..86157efe0c533 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/SqlDedicatedGatewayServiceProperties.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/SqlDedicatedGatewayServiceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Internal/ChangeTrackingList.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..3debccf161d32 --- /dev/null +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.CosmosDBForPostgreSql +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterConfigurationListResult.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterConfigurationListResult.cs index 08784edd3fba0..ef81a62ffa197 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterConfigurationListResult.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDBForPostgreSql; namespace Azure.ResourceManager.CosmosDBForPostgreSql.Models diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterListResult.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterListResult.cs index 670fed2bd879d..5aedfcce86ff8 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterListResult.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDBForPostgreSql; namespace Azure.ResourceManager.CosmosDBForPostgreSql.Models diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterServerListResult.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterServerListResult.cs index 6e303defea32f..6c3e48dc8ddaa 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterServerListResult.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlClusterServerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDBForPostgreSql; namespace Azure.ResourceManager.CosmosDBForPostgreSql.Models diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlFirewallRuleListResult.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlFirewallRuleListResult.cs index 2d989e9f91c85..1b424fa0564e0 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlFirewallRuleListResult.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlFirewallRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDBForPostgreSql; namespace Azure.ResourceManager.CosmosDBForPostgreSql.Models diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlPrivateEndpointConnectionListResult.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlPrivateEndpointConnectionListResult.cs index c2ee482d47b17..c10911ac00ccf 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlPrivateEndpointConnectionListResult.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDBForPostgreSql; namespace Azure.ResourceManager.CosmosDBForPostgreSql.Models diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlPrivateLinkResourceListResult.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlPrivateLinkResourceListResult.cs index d1cc4c7983d44..748d82788a639 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlPrivateLinkResourceListResult.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDBForPostgreSql; namespace Azure.ResourceManager.CosmosDBForPostgreSql.Models diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlRoleListResult.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlRoleListResult.cs index d6ff6ae8e03e1..51f3aa435e17b 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlRoleListResult.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlRoleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDBForPostgreSql; namespace Azure.ResourceManager.CosmosDBForPostgreSql.Models diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlServerConfigurationListResult.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlServerConfigurationListResult.cs index 5fd7d9814cf70..44dca1eeb7af6 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlServerConfigurationListResult.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlServerConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CosmosDBForPostgreSql; namespace Azure.ResourceManager.CosmosDBForPostgreSql.Models diff --git a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlSimplePrivateEndpointConnection.cs b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlSimplePrivateEndpointConnection.cs index 200f586196842..f3d4d64941353 100644 --- a/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlSimplePrivateEndpointConnection.cs +++ b/sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/src/Generated/Models/CosmosDBForPostgreSqlSimplePrivateEndpointConnection.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CosmosDBForPostgreSql; using Azure.ResourceManager.Models; using Azure.ResourceManager.Resources.Models; diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Internal/ChangeTrackingList.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..0dcab965ceb4b --- /dev/null +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.CostManagement +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AlertPropertiesDetails.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AlertPropertiesDetails.cs index 60846d652cf2d..3b7b27b19f570 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AlertPropertiesDetails.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AlertPropertiesDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AllSavingsList.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AllSavingsList.cs index 4746b1cd02dd8..809de4559c15c 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AllSavingsList.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AllSavingsList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/BenefitRecommendationsListResult.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/BenefitRecommendationsListResult.cs index 95ef271badd70..2a53f7b82aa7b 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/BenefitRecommendationsListResult.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/BenefitRecommendationsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/BenefitUtilizationSummariesListResult.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/BenefitUtilizationSummariesListResult.cs index 25adb819cba9a..99f11a0c445ac 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/BenefitUtilizationSummariesListResult.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/BenefitUtilizationSummariesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementAlertsResult.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementAlertsResult.cs index af51b2bdea1c4..9d34d61f88e3e 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementAlertsResult.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementAlertsResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementDimension.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementDimension.cs index 69a1da6195920..52acb78f208f0 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementDimension.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementDimension.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.CostManagement; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.CostManagement.Models diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementDimensionsListResult.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementDimensionsListResult.cs index 26ce9237abb6b..91059746f9c9e 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementDimensionsListResult.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/CostManagementDimensionsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ExportDatasetConfiguration.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ExportDatasetConfiguration.cs index 3612f9abc0d50..ed79c4921220a 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ExportDatasetConfiguration.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ExportDatasetConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ExportExecutionListResult.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ExportExecutionListResult.cs index 78ae2bdb935a3..7cf10097b72bc 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ExportExecutionListResult.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ExportExecutionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ExportListResult.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ExportListResult.cs index c41e0a73218e3..85a8618db0114 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ExportListResult.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ExportListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/FileDestination.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/FileDestination.cs index db2ebc3476ce9..88267c82464c8 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/FileDestination.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/FileDestination.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastDatasetConfiguration.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastDatasetConfiguration.cs index f06e23d9ded3e..b42e1960b9bcf 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastDatasetConfiguration.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastDatasetConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastFilter.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastFilter.cs index 7175412e608bc..84a85046ab408 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastFilter.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastResult.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastResult.cs index f072b9006ade0..17541fcdcc87a 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastResult.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.CostManagement; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.CostManagement.Models diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryDataset.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryDataset.cs index 0d1b62d439bde..112018fe74d19 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryDataset.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryDataset.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryDatasetConfiguration.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryDatasetConfiguration.cs index b47ef0865b062..c9f7ecc5e6e45 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryDatasetConfiguration.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryDatasetConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryFilter.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryFilter.cs index 736acb07ba735..bf2b584b77cd0 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryFilter.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryResult.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryResult.cs index 9b2eccf3a4443..7b816dcfe16cf 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryResult.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.CostManagement; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.CostManagement.Models diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/RecommendationUsageDetails.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/RecommendationUsageDetails.cs index 1102604a29e4b..3cfe2c6e04cc5 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/RecommendationUsageDetails.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/RecommendationUsageDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ReportConfigDataset.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ReportConfigDataset.cs index aeab8423d45a8..017b9f7e7b274 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ReportConfigDataset.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ReportConfigDataset.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ReportConfigDatasetConfiguration.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ReportConfigDatasetConfiguration.cs index 567e5869e4097..c81cc49f97ab8 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ReportConfigDatasetConfiguration.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ReportConfigDatasetConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ReportConfigFilter.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ReportConfigFilter.cs index 54243031b743c..65381859d70cb 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ReportConfigFilter.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ReportConfigFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ScheduleProperties.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ScheduleProperties.cs index cfca9457add3d..9de59e963bd74 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ScheduleProperties.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ScheduleProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ScheduledActionListResult.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ScheduledActionListResult.cs index d0674942b34e7..fd9997373af39 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ScheduledActionListResult.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ScheduledActionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ViewListResult.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ViewListResult.cs index 010fdede6ca3b..41cf6ddc2f263 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ViewListResult.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ViewListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CostManagement; namespace Azure.ResourceManager.CostManagement.Models diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Internal/ChangeTrackingList.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..e300ffb67e520 --- /dev/null +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.CustomerInsights +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/AuthorizationPolicyListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/AuthorizationPolicyListResult.cs index 75665188b47a2..fa3f827bae6ca 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/AuthorizationPolicyListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/AuthorizationPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CanonicalProfileDefinition.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CanonicalProfileDefinition.cs index a1304d13a8dcb..17c8b32fbff3e 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CanonicalProfileDefinition.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/CanonicalProfileDefinition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models { diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorListResult.cs index 09bdfc2485303..37895255f7b6c 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorMappingListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorMappingListResult.cs index c9827f6ca7df4..bc3f8eab4b0a8 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorMappingListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ConnectorMappingListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/HubListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/HubListResult.cs index 93a517cb4eb2a..e2b9a1e4de8d5 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/HubListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/HubListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/InteractionListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/InteractionListResult.cs index 3533c350e688e..c801fc454fb96 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/InteractionListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/InteractionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiDefinition.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiDefinition.cs index c883f44d3c734..d084e4537102e 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiDefinition.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiDefinition.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models { diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiListResult.cs index d3084d3da7204..fcea7832dfd1e 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/KpiListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/LinkListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/LinkListResult.cs index e0b08db9c96dc..4d4a828b82c80 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/LinkListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/LinkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionDistributionDefinition.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionDistributionDefinition.cs index f6dccf9a674e8..8a6fb44a6b6db 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionDistributionDefinition.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionDistributionDefinition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models { diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionListResult.cs index 4c152ecc74a77..e1b917afa8121 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionSystemGeneratedEntities.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionSystemGeneratedEntities.cs index c5bada0bd0001..204da824b2959 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionSystemGeneratedEntities.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionSystemGeneratedEntities.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models { diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionTrainingResults.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionTrainingResults.cs index 96ab9c9f74d9e..f5e0a03564ff8 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionTrainingResults.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PredictionTrainingResults.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models { diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ProfileListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ProfileListResult.cs index 68bc0a6108937..ac1dcf2f4d4ac 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ProfileListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ProfileListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PropertyDefinition.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PropertyDefinition.cs index b9991bd7b704f..6ea2fb93e52fd 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PropertyDefinition.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/PropertyDefinition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models { diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipLinkListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipLinkListResult.cs index 1baf2c1c3d741..e5e5bcc04cab0 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipLinkListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipLinkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipListResult.cs index d200b9a7797d1..e17fbc2028913 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipsLookup.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipsLookup.cs index 2c69123810708..48a30be109f72 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipsLookup.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RelationshipsLookup.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models { diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ResourceSetDescription.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ResourceSetDescription.cs index 14c4c68fcef42..2483578cb902b 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ResourceSetDescription.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ResourceSetDescription.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models { diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleAssignmentListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleAssignmentListResult.cs index 928f0b0f1275e..b0ce4f7bf57eb 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleAssignmentListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleAssignmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleListResult.cs index 84ae7af54ec57..e42a786b2d2b8 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/RoleListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models { diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/SuggestRelationshipLinksResponse.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/SuggestRelationshipLinksResponse.cs index e7eac8517c263..b8f20c0e11db8 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/SuggestRelationshipLinksResponse.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/SuggestRelationshipLinksResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models { diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ViewListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ViewListResult.cs index 99c1925d3de6c..92108d4668bda 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ViewListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/ViewListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/WidgetTypeListResult.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/WidgetTypeListResult.cs index 714d0a1619ca9..b41d5d773a420 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/WidgetTypeListResult.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/src/Generated/Models/WidgetTypeListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.CustomerInsights; namespace Azure.ResourceManager.CustomerInsights.Models diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Internal/ChangeTrackingList.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..52e1475d219eb --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DataBox +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AddressValidationOutput.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AddressValidationOutput.cs index 870b193e40cd5..08b5a5b54dca4 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AddressValidationOutput.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AddressValidationOutput.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AddressValidationResult.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AddressValidationResult.cs index 08fc59bc4ba44..a3b9fb47bbe3e 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AddressValidationResult.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AddressValidationResult.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AvailableSkusContent.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AvailableSkusContent.cs index 4311e4af6a27b..a3090c7f7b9da 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AvailableSkusContent.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AvailableSkusContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AvailableSkusResult.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AvailableSkusResult.cs index 08b0438e8bf96..676903fb53117 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AvailableSkusResult.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AvailableSkusResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AzureFileFilterDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AzureFileFilterDetails.cs index 8d7c1b0858018..163d40a4708db 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AzureFileFilterDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/AzureFileFilterDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/BlobFilterDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/BlobFilterDetails.cs index 83355f3a402f6..5e35eb9b8f959 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/BlobFilterDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/BlobFilterDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/CustomerDiskJobSecrets.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/CustomerDiskJobSecrets.cs index 06f96d85be829..a78e799a77074 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/CustomerDiskJobSecrets.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/CustomerDiskJobSecrets.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxAccountCredentialDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxAccountCredentialDetails.cs index 3c6cfdf37163f..300e4e78da9a3 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxAccountCredentialDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxAccountCredentialDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxBasicJobDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxBasicJobDetails.cs index e187c02031a2c..9cc2853aa96a8 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxBasicJobDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxBasicJobDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxContactDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxContactDetails.cs index 2fb43ed93662c..7b130fdd1b1e3 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxContactDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxContactDetails.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCopyProgress.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCopyProgress.cs index 4dffc6fff0336..aaa91f8c3af52 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCopyProgress.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCopyProgress.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs index 96c1a9bead135..b408f59ebdc46 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxCustomerDiskJobDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs index 8457d0bf16835..236b706c0ddae 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs index 7a0851a3f9728..0a5b1ead033a6 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs index 3dd96e7816a91..025d8a8a1d2c1 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyAccountCopyLogDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyAccountCopyLogDetails.cs index 5005fd2ec4eac..9d418e79f0bd3 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyAccountCopyLogDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyAccountCopyLogDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs index e73137969565f..ee05a65f33446 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs index 6484310f33e8f..74cf587daea97 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavySecret.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavySecret.cs index 0da9344f6b72b..16ae4d9905291 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavySecret.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxHeavySecret.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobDetails.cs index 816269d2083e0..8867f9d9b34f3 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobListResult.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobListResult.cs index 621358c966271..277efcd4df28f 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobListResult.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxJobListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderPreferences.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderPreferences.cs index 0d74a54bae3ea..89502e60f8953 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderPreferences.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxOrderPreferences.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSecret.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSecret.cs index d70f15b2d9c8f..292f2f5088e81 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSecret.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSecret.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuInformation.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuInformation.cs index 92b8586fd8e04..38cfe95181309 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuInformation.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxSkuInformation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidationResult.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidationResult.cs index c787b2dc2a7d4..348b0afaaa3ec 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidationResult.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataBoxValidationResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataCenterAddressResult.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataCenterAddressResult.cs index eb2ca6a1b4a9b..10039573b1bf9 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataCenterAddressResult.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataCenterAddressResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataTransferDetailsValidationContent.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataTransferDetailsValidationContent.cs index aacf53fdcae2b..dab8502413ea1 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataTransferDetailsValidationContent.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataTransferDetailsValidationContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataboxJobSecrets.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataboxJobSecrets.cs index b2ca4f0b4b4a8..0235eed05f6c6 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataboxJobSecrets.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/DataboxJobSecrets.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyProgress.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyProgress.cs index 3d2c901184022..7535e67cf8453 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyProgress.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/GranularCopyProgress.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ScheduleAvailabilityResponse.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ScheduleAvailabilityResponse.cs index 6b25b5c2ce9c1..8ff3d998ba2f5 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ScheduleAvailabilityResponse.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ScheduleAvailabilityResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ShareCredentialDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ShareCredentialDetails.cs index a9d3e956d26f8..3a5346e8cb515 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ShareCredentialDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/ShareCredentialDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransferFilterDetails.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransferFilterDetails.cs index bcad5dd43dfd2..7facf610676f1 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransferFilterDetails.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransferFilterDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportAvailabilityResponse.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportAvailabilityResponse.cs index e52e5c9de79a5..d0100eb005628 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportAvailabilityResponse.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/TransportAvailabilityResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnencryptedCredentialsList.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnencryptedCredentialsList.cs index ad8c55db8c3ae..343461598d1ac 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnencryptedCredentialsList.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/Models/UnencryptedCredentialsList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBox; namespace Azure.ResourceManager.DataBox.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Internal/ChangeTrackingList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..00a9479d13fbf --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DataBoxEdge +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AddonList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AddonList.cs index d0fbf23c3ff0c..505eafe79ba71 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AddonList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AddonList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AlertList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AlertList.cs index 730d0b091e89d..a71f9f0a5835e 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AlertList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AlertList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AvailableDataBoxEdgeSku.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AvailableDataBoxEdgeSku.cs index 518abbe424c59..13604a67d2dd7 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AvailableDataBoxEdgeSku.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AvailableDataBoxEdgeSku.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AvailableDataBoxEdgeSkuList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AvailableDataBoxEdgeSkuList.cs index fd52594822969..f184ed0157ff3 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AvailableDataBoxEdgeSkuList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/AvailableDataBoxEdgeSkuList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/BandwidthSchedulesList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/BandwidthSchedulesList.cs index bac392a010b8d..8472edbfd596d 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/BandwidthSchedulesList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/BandwidthSchedulesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/ContainerList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/ContainerList.cs index db328d858e9a2..8d15c2d5310e8 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/ContainerList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/ContainerList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceList.cs index 024a5d0aefffc..0ea69d08648b7 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceNetworkSettings.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceNetworkSettings.cs index a3d6d04b9a351..cef9fab29a918 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceNetworkSettings.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceNetworkSettings.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceUpdateSummary.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceUpdateSummary.cs index c84ab87a86e50..c16d691fed1e5 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceUpdateSummary.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceUpdateSummary.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeJobErrorDetails.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeJobErrorDetails.cs index f2f67dfa25542..b3c9520ee83b3 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeJobErrorDetails.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeJobErrorDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeJobErrorItem.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeJobErrorItem.cs index 8a6767c16af65..416c4d01fe4d2 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeJobErrorItem.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeJobErrorItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeMetricCounter.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeMetricCounter.cs index 665c5d24ccb98..d3f441f18e659 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeMetricCounter.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeMetricCounter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeNetworkAdapter.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeNetworkAdapter.cs index 00cf3314d39ab..11a609081276f 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeNetworkAdapter.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeNetworkAdapter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeNodeList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeNodeList.cs index 8bcf0f7d44176..1c021004bb9db 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeNodeList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeNodeList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeSkuLocationInfo.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeSkuLocationInfo.cs index 8c7e6cd9a296d..8aeab1fa32c94 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeSkuLocationInfo.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DataBoxEdgeSkuLocationInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DeviceCapacityRequestContent.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DeviceCapacityRequestContent.cs index 8a13cfcc17c22..5d3144d8b78de 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DeviceCapacityRequestContent.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/DeviceCapacityRequestContent.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeKubernetesClusterInfo.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeKubernetesClusterInfo.cs index dca7dc4c7ad92..b1beabb54d9d0 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeKubernetesClusterInfo.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeKubernetesClusterInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeKubernetesNodeInfo.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeKubernetesNodeInfo.cs index 16d07d1cf4d4d..e1d24730147be 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeKubernetesNodeInfo.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeKubernetesNodeInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeKubernetesRoleStorage.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeKubernetesRoleStorage.cs index a029d247c95b0..a8cc9df4dbee2 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeKubernetesRoleStorage.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeKubernetesRoleStorage.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeProfileSubscription.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeProfileSubscription.cs index fe6929668d2b2..65e68ae3cbc96 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeProfileSubscription.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/EdgeProfileSubscription.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/HostCapacity.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/HostCapacity.cs index e9333a947fe11..26e952169bc0b 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/HostCapacity.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/HostCapacity.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/MonitoringMetricConfigurationList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/MonitoringMetricConfigurationList.cs index eccdb434ce6ad..1d403fe7175e0 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/MonitoringMetricConfigurationList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/MonitoringMetricConfigurationList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/NumaNodeInfo.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/NumaNodeInfo.cs index 7b9545f5a6cec..04be60e7874ad 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/NumaNodeInfo.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/NumaNodeInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/OrderList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/OrderList.cs index 61bfcf811a234..5e8c302e0944d 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/OrderList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/OrderList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/RoleList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/RoleList.cs index 15bbf76529649..df66e163aff75 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/RoleList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/RoleList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/ShareList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/ShareList.cs index f275f51f0b7fe..67186700e98b7 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/ShareList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/ShareList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/StorageAccountCredentialList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/StorageAccountCredentialList.cs index 8c671e11ca8b9..e197d33263dab 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/StorageAccountCredentialList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/StorageAccountCredentialList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/StorageAccountList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/StorageAccountList.cs index cbd5870b6f101..da87bb7f6648d 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/StorageAccountList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/StorageAccountList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/TriggerList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/TriggerList.cs index 02969ae04a66d..47fc3fc37dcd9 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/TriggerList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/TriggerList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/UserList.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/UserList.cs index 9b7b60e86ad95..5e69ad960d8b8 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/UserList.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/UserList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/VmPlacementRequestResult.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/VmPlacementRequestResult.cs index 804780119471b..81704d6b5c566 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/VmPlacementRequestResult.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/Models/VmPlacementRequestResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; namespace Azure.ResourceManager.DataBoxEdge.Models { diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Internal/ChangeTrackingList.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..6fe4204b4f4ca --- /dev/null +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Datadog +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogAgreementResourceListResponse.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogAgreementResourceListResponse.cs index fcea738ac291e..0fee74612a249 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogAgreementResourceListResponse.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogAgreementResourceListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Datadog; namespace Azure.ResourceManager.Datadog.Models { diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogApiKeyListResponse.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogApiKeyListResponse.cs index 7646d83607c72..bed0488752092 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogApiKeyListResponse.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogApiKeyListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Datadog; namespace Azure.ResourceManager.Datadog.Models { diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogHost.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogHost.cs index f1e7bc5cc7534..dba2f44984863 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogHost.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogHost.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Datadog; namespace Azure.ResourceManager.Datadog.Models { diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogHostListResponse.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogHostListResponse.cs index 2ac79956f2be8..298f739f32a9c 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogHostListResponse.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogHostListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Datadog; namespace Azure.ResourceManager.Datadog.Models { diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogMonitorResourceListResponse.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogMonitorResourceListResponse.cs index c80538c8748ff..b2ed57a25d869 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogMonitorResourceListResponse.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogMonitorResourceListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Datadog; namespace Azure.ResourceManager.Datadog.Models diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogSingleSignOnResourceListResponse.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogSingleSignOnResourceListResponse.cs index 2200b43584b6f..f0c09ae177efb 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogSingleSignOnResourceListResponse.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/DatadogSingleSignOnResourceListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Datadog; namespace Azure.ResourceManager.Datadog.Models diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/LinkedResourceListResponse.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/LinkedResourceListResponse.cs index 740df76fb4a26..ca037fd2a1986 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/LinkedResourceListResponse.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/LinkedResourceListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Datadog; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Datadog.Models diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/LogRules.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/LogRules.cs index cab287d085006..1c23a2a76cf10 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/LogRules.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/LogRules.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Datadog; namespace Azure.ResourceManager.Datadog.Models { diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MetricRules.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MetricRules.cs index 73d2844424ea5..88c8c53064853 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MetricRules.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MetricRules.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Datadog; namespace Azure.ResourceManager.Datadog.Models { diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MonitoredResourceListResponse.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MonitoredResourceListResponse.cs index 39a46f825b10f..7f01fbaf0444d 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MonitoredResourceListResponse.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MonitoredResourceListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Datadog; namespace Azure.ResourceManager.Datadog.Models { diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MonitoringTagRulesListResponse.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MonitoringTagRulesListResponse.cs index d05c4c12c2798..72b1c7017fd19 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MonitoringTagRulesListResponse.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/Models/MonitoringTagRulesListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Datadog; namespace Azure.ResourceManager.Datadog.Models diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Internal/ChangeTrackingList.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..7816f47c5f71f --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DataFactory +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSSink.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSSink.cs index 7721056ee22e9..3f3e3022f2644 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSSink.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSSink.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivity.cs index 5aeb8d95e57fa..0541a4c146019 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivity.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomActivityReferenceObject.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomActivityReferenceObject.cs index 98986b2c5403b..c514772b56337 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomActivityReferenceObject.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomActivityReferenceObject.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DWCopyCommandSettings.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DWCopyCommandSettings.cs index 8350e0df88ebb..588ce319a26a3 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DWCopyCommandSettings.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DWCopyCommandSettings.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryBlobSink.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryBlobSink.cs index 12fcc96368653..1e7bb39da8a4e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryBlobSink.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryBlobSink.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredential.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredential.cs index 23ce5c36ed933..86003d42b5ce0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredential.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredential.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowDebugPackageContent.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowDebugPackageContent.cs index 9d4650a5d71ce..c2582eecb6de6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowDebugPackageContent.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowDebugPackageContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowProperties.cs index f33802839b624..b844029e80d9f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetProperties.cs index 934ce06eebb44..e5380b9ef2fa2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetProperties.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletProperties.cs index af70df8b02257..0a5e729c0d45b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceProperties.cs index f429a5610b3eb..f806a45e6a5c3 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowProperties.cs index 748994a4b5446..a3458ccf6a886 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointProperties.cs index 0ccb7b6495cfc..08022bed56731 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateLinkResourceProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateLinkResourceProperties.cs index 85707365e15a5..502d54b4151ad 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateLinkResourceProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateLinkResourceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceSchedule.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceSchedule.cs index ce837631ad180..6d0ae0ff0fe10 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceSchedule.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceSchedule.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptActivity.cs index ce9d59c6cccef..b9f6210b42792 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptActivity.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerProperties.cs index 7b909601113aa..6d65e04eee039 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowProperties.cs index ebd8aba52c10d..25d2c0c48a35d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugCommandPayload.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugCommandPayload.cs index d5fa3a818feea..87776942bbe11 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugCommandPayload.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugCommandPayload.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugPackageDebugSettings.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugPackageDebugSettings.cs index bd1977a0579c6..4176070b73084 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugPackageDebugSettings.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugPackageDebugSettings.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfoListResult.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfoListResult.cs index a68e046ceaf63..3553c1f11b9be 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfoListResult.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfoListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.cs index f6ee6866c63cc..4c0bbb534bdcb 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.cs index 40e55458a7412..ac819b2af77a2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.cs index 326f38bcd1685..9c72b9ed0a6cd 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.cs index 57aa1d7803c2d..bba18348f829a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GetDatasetMetadataActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GetDatasetMetadataActivity.cs index 2548f754f6fd0..cd97c0c7d5218 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GetDatasetMetadataActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GetDatasetMetadataActivity.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightHiveActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightHiveActivity.cs index 17ada7f02b0b1..8d84f7931735c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightHiveActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightHiveActivity.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightMapReduceActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightMapReduceActivity.cs index a2ec0d6c7b725..3484d0e7550b7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightMapReduceActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightMapReduceActivity.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightOnDemandLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightOnDemandLinkedService.cs index a8e4ffbbf3786..b580ddc652985 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightOnDemandLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightOnDemandLinkedService.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightPigActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightPigActivity.cs index b040715ec6538..a0c154ee289e9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightPigActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightPigActivity.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightSparkActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightSparkActivity.cs index 115a459607db7..21efebbcf786d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightSparkActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightSparkActivity.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightStreamingActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightStreamingActivity.cs index 6bc298370d9cc..8eeb1d3b157e3 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightStreamingActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightStreamingActivity.cs @@ -10,6 +10,7 @@ using System.Linq; using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IfConditionActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IfConditionActivity.cs index bcfb678a817a3..da3e280ea429a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IfConditionActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IfConditionActivity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.cs index 3e917c3487244..ff6dbcb5f6427 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeMonitoringData.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeMonitoringData.cs index 70d08a8d2d3a2..b7afb275fd3fc 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeMonitoringData.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeMonitoringData.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.cs index 9446289cefad3..41bb465e99826 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.cs index 30655d00fcd4c..8516a659a002b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesResult.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesResult.cs index d2a95b5c285be..55e8133e378e3 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesResult.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeSsisProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeSsisProperties.cs index 121b5ddd7faca..99382450ac80d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeSsisProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeSsisProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVnetProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVnetProperties.cs index b23fa66cf7747..8edc6ae23dcf7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVnetProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVnetProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeError.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeError.cs index 587f9255d51a1..67e784e2867f6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeError.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeError.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeNode.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeNode.cs index 3cc71b45c88d1..7e3d2e1dd39a0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeNode.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeNode.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeOperationResult.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeOperationResult.cs index 43fb297417180..aca7223f42eb6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeOperationResult.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeOperationResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeStatus.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeStatus.cs index ddb53033508eb..b24372a6dd4ae 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeStatus.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntimeStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMapping.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMapping.cs index eccaf70f8901e..c7577707ff25d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMapping.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMapping.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMappings.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMappings.cs index b9ca395a4241d..d93bcbc289c69 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMappings.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMappings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnection.cs index 4500f7aa92e9b..f2371f163e430 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnection.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperSourceConnectionsInfo.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperSourceConnectionsInfo.cs index c660d24509ec1..6d49c29a60ae1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperSourceConnectionsInfo.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperSourceConnectionsInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTable.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTable.cs index 7a0a982e76210..46397c44d5b3a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTable.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTable.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTargetConnectionsInfo.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTargetConnectionsInfo.cs index a6906bb416565..d6f058441252a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTargetConnectionsInfo.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTargetConnectionsInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MultiplePipelineTrigger.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MultiplePipelineTrigger.cs index 15a172ecff9e5..63b67749cd7e6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MultiplePipelineTrigger.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MultiplePipelineTrigger.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivity.cs index 60b40a81ed1c8..611baf0eedc76 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivity.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PowerQuerySinkMapping.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PowerQuerySinkMapping.cs index c46732b11e9b6..b9ee2fe26196b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PowerQuerySinkMapping.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PowerQuerySinkMapping.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RunFilterContent.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RunFilterContent.cs index 629ceb71eccc7..3a2129850a383 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RunFilterContent.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RunFilterContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs index 42724f352c30f..f8bc846e4038a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntimeStatus.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntimeStatus.cs index 1a1c47a7839bd..f87aec8b8ccc7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntimeStatus.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntimeStatus.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisEnvironment.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisEnvironment.cs index 551bae7a7433b..579d7e3ffb9c9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisEnvironment.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisEnvironment.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResult.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResult.cs index 908a9ddb87291..be7e85fbac52c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResult.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisPackage.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisPackage.cs index 90465e4beab9f..789496524bf86 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisPackage.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisPackage.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisPackageLocation.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisPackageLocation.cs index 8da713471b17e..f75099e8ac3e0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisPackageLocation.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisPackageLocation.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisProject.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisProject.cs index 6ceee36fc062e..47a9dc530c774 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisProject.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisProject.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/StoreWriteSettings.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/StoreWriteSettings.cs index eecb8450e2646..db92780681b60 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/StoreWriteSettings.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/StoreWriteSettings.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchActivity.cs index 3ea67065c6150..8b98ec82e9d38 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchActivity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchCaseActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchCaseActivity.cs index 3e591789974ac..dc438cdbda368 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchCaseActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchCaseActivity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseSparkJobDefinitionActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseSparkJobDefinitionActivity.cs index 1e927a704e329..0515488c2ea37 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseSparkJobDefinitionActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseSparkJobDefinitionActivity.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TumblingWindowTrigger.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TumblingWindowTrigger.cs index cb483e4ebf915..3217170202da1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TumblingWindowTrigger.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TumblingWindowTrigger.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebActivity.cs index 97cfe7ca257e9..4930a4efaa756 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebActivity.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.Core.Expressions.DataFactory; +using Azure.ResourceManager.DataFactory; namespace Azure.ResourceManager.DataFactory.Models { diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Internal/ChangeTrackingList.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..dd0a3a3d8e887 --- /dev/null +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DataLakeAnalytics +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountCreateOrUpdateContent.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountCreateOrUpdateContent.cs index 3c3bcdc032b86..7b7659db53d6d 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountCreateOrUpdateContent.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountCreateOrUpdateContent.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.ResourceManager.DataLakeAnalytics; namespace Azure.ResourceManager.DataLakeAnalytics.Models { diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountListResult.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountListResult.cs index 6abc444270b19..257b130a16e09 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountListResult.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataLakeAnalytics; namespace Azure.ResourceManager.DataLakeAnalytics.Models { diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountPatch.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountPatch.cs index 5a2837b7eb16d..08106d6df7521 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountPatch.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataLakeAnalytics; namespace Azure.ResourceManager.DataLakeAnalytics.Models { diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsComputePolicyListResult.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsComputePolicyListResult.cs index fd613e5f20d57..3773adcdcb15e 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsComputePolicyListResult.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsComputePolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataLakeAnalytics; namespace Azure.ResourceManager.DataLakeAnalytics.Models diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallRuleListResult.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallRuleListResult.cs index 6c60e25eecb34..7caee07d12cf1 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallRuleListResult.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataLakeAnalytics; namespace Azure.ResourceManager.DataLakeAnalytics.Models diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsSasTokenInformationListResult.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsSasTokenInformationListResult.cs index 207c4a0b23af7..7117f70bd4a4b 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsSasTokenInformationListResult.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsSasTokenInformationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataLakeAnalytics; namespace Azure.ResourceManager.DataLakeAnalytics.Models { diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsStorageAccountInformationListResult.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsStorageAccountInformationListResult.cs index 7d7b6fcf59aec..a1d9812a977a7 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsStorageAccountInformationListResult.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsStorageAccountInformationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataLakeAnalytics; namespace Azure.ResourceManager.DataLakeAnalytics.Models diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsStorageContainerListResult.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsStorageContainerListResult.cs index 8f24b2cfde725..7f706ab19279d 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsStorageContainerListResult.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsStorageContainerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataLakeAnalytics; namespace Azure.ResourceManager.DataLakeAnalytics.Models diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeStoreAccountInformationListResult.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeStoreAccountInformationListResult.cs index b1e3edb0c2009..e2d8359969906 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeStoreAccountInformationListResult.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeStoreAccountInformationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataLakeAnalytics; namespace Azure.ResourceManager.DataLakeAnalytics.Models diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Internal/ChangeTrackingList.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..abe747aed22d1 --- /dev/null +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DataLakeStore +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountCreateOrUpdateContent.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountCreateOrUpdateContent.cs index 814206c231872..ce321307e3400 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountCreateOrUpdateContent.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountCreateOrUpdateContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataLakeStore; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.DataLakeStore.Models diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountListResult.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountListResult.cs index 42d9afca2df32..e5c92197911d8 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountListResult.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataLakeStore; namespace Azure.ResourceManager.DataLakeStore.Models { diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountPatch.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountPatch.cs index 7c560a18d499b..d4765cf29bea1 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountPatch.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataLakeStore; namespace Azure.ResourceManager.DataLakeStore.Models { diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallRuleListResult.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallRuleListResult.cs index 1427dea2e728c..674b3fbb8c198 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallRuleListResult.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataLakeStore; namespace Azure.ResourceManager.DataLakeStore.Models diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreTrustedIdProviderListResult.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreTrustedIdProviderListResult.cs index 65f99c2689a10..f3e093db525a5 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreTrustedIdProviderListResult.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreTrustedIdProviderListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataLakeStore; namespace Azure.ResourceManager.DataLakeStore.Models diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreUsageListResult.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreUsageListResult.cs index fde3611006dc4..c5c3a6fe082bf 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreUsageListResult.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreUsageListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataLakeStore; namespace Azure.ResourceManager.DataLakeStore.Models { diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreVirtualNetworkRuleListResult.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreVirtualNetworkRuleListResult.cs index 0eacf7002cbc4..4d76ce8e9a85a 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreVirtualNetworkRuleListResult.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreVirtualNetworkRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataLakeStore; namespace Azure.ResourceManager.DataLakeStore.Models diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Internal/ChangeTrackingList.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..b53a92c77bcf2 --- /dev/null +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DataMigration +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/BackupSetInfo.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/BackupSetInfo.cs index 44ea3cb690298..79c179f6372d7 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/BackupSetInfo.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/BackupSetInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/CheckOciDriverTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/CheckOciDriverTaskOutput.cs index dd8615a9f151f..19cba97b65e62 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/CheckOciDriverTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/CheckOciDriverTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/CheckOciDriverTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/CheckOciDriverTaskProperties.cs index 153b8020d2815..dfeb7a23c9254 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/CheckOciDriverTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/CheckOciDriverTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/CommandProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/CommandProperties.cs index d5a383a917334..da45faf156e1a 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/CommandProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/CommandProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToMongoDBTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToMongoDBTaskProperties.cs index 08586cfcdcc2d..6a95e73975f10 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToMongoDBTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToMongoDBTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceMySqlTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceMySqlTaskProperties.cs index e65b3161f954f..1b513bfd1bce2 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceMySqlTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceMySqlTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceNonSqlTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceNonSqlTaskOutput.cs index d39ee3b182a45..2a8bbf045e291 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceNonSqlTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceNonSqlTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceOracleSyncTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceOracleSyncTaskOutput.cs index 3d92208b91244..972c0cf2b4f6d 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceOracleSyncTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceOracleSyncTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceOracleSyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceOracleSyncTaskProperties.cs index afbd8aa1eb7f8..96fae5beab19c 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceOracleSyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceOracleSyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourcePostgreSqlSyncTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourcePostgreSqlSyncTaskOutput.cs index 515a0d2f35475..2bc46a5876cf1 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourcePostgreSqlSyncTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourcePostgreSqlSyncTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourcePostgreSqlSyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourcePostgreSqlSyncTaskProperties.cs index e4e33019de06b..3aa194d49f634 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourcePostgreSqlSyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourcePostgreSqlSyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerSyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerSyncTaskProperties.cs index f4178ad5fb1d8..e8906c9d1fd72 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerSyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerSyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskOutputAgentJobLevel.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskOutputAgentJobLevel.cs index d5761d0a2ad85..f242cba3ad9ab 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskOutputAgentJobLevel.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskOutputAgentJobLevel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskOutputDatabaseLevel.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskOutputDatabaseLevel.cs index 7f33bb6893c58..b86713e39004e 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskOutputDatabaseLevel.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskOutputDatabaseLevel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskOutputTaskLevel.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskOutputTaskLevel.cs index e08df2a7d6b04..0d803232aecff 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskOutputTaskLevel.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskOutputTaskLevel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskProperties.cs index 9517e1809eabb..1afcee17aacb2 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToSourceSqlServerTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForMySqlTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForMySqlTaskOutput.cs index 104d586052f17..585f78861f037 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForMySqlTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForMySqlTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForMySqlTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForMySqlTaskProperties.cs index 63e3c3a1d3ef1..387d1829aa4e9 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForMySqlTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForMySqlTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForPostgreSqlSyncTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForPostgreSqlSyncTaskOutput.cs index 302d37f4041a5..4e37e90a0b674 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForPostgreSqlSyncTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForPostgreSqlSyncTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForPostgreSqlSyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForPostgreSqlSyncTaskProperties.cs index 44200693ded5a..15d3fb5d21eba 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForPostgreSqlSyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetAzureDBForPostgreSqlSyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutput.cs index 392e3820497dd..1313f0847ffe0 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem.cs index 9dc4462b1344a..12f0ededa7c17 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskProperties.cs index 96eaa19d34397..258636b1ebc7c 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlDBSyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlDBSyncTaskProperties.cs index 4e75a94b6fdf1..b1e5761a2966f 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlDBSyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlDBSyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlDBTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlDBTaskProperties.cs index 44f46129a4927..7f320e97bf9fc 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlDBTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlDBTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMISyncTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMISyncTaskOutput.cs index 0eac7136e0e02..e428ef544a4a3 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMISyncTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMISyncTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMISyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMISyncTaskProperties.cs index 65b44c6d9482e..088eb6ccf3336 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMISyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMISyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMITaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMITaskOutput.cs index dd43f1eb65323..1e67bd4c5d6a5 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMITaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMITaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMITaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMITaskProperties.cs index efe20733ae5aa..a5ab93dac2780 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMITaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ConnectToTargetSqlMITaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DataMigrationServiceList.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DataMigrationServiceList.cs index 75e3d06be3940..9944b069c7f69 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DataMigrationServiceList.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DataMigrationServiceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DataMigrationServiceStatusResponse.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DataMigrationServiceStatusResponse.cs index 7f12f57aeb55d..e1485dbb5f32a 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DataMigrationServiceStatusResponse.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DataMigrationServiceStatusResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseBackupInfo.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseBackupInfo.cs index e9cc24ff07e41..4192d89bb5bdd 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseBackupInfo.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseBackupInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationListResult.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationListResult.cs index ba6182d1aad98..a600fc984c5d3 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationListResult.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationSqlDBProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationSqlDBProperties.cs index 807cbdb621147..481c3d448ac6e 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationSqlDBProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/DatabaseMigrationSqlDBProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ExecutionStatistics.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ExecutionStatistics.cs index 3a6258305f2a9..3a697a8ce4170 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ExecutionStatistics.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ExecutionStatistics.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/FileList.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/FileList.cs index 153f31d24bdaa..bdfd0a22c1f95 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/FileList.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/FileList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetTdeCertificatesSqlTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetTdeCertificatesSqlTaskOutput.cs index 67a50d8c1b9e3..b53772a9a2981 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetTdeCertificatesSqlTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetTdeCertificatesSqlTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetTdeCertificatesSqlTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetTdeCertificatesSqlTaskProperties.cs index 73a6da03371f6..e63a99c457d80 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetTdeCertificatesSqlTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetTdeCertificatesSqlTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesMySqlTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesMySqlTaskOutput.cs index 9a4550b93104a..2462dd4ec6ba4 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesMySqlTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesMySqlTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesMySqlTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesMySqlTaskProperties.cs index aaa870f47c62a..2656ca4847242 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesMySqlTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesMySqlTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesOracleTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesOracleTaskOutput.cs index b4e02f1f8498a..7e53d50359d74 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesOracleTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesOracleTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesOracleTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesOracleTaskProperties.cs index ec9143fd6ba02..a54a2d5791337 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesOracleTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesOracleTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesPostgreSqlTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesPostgreSqlTaskOutput.cs index f33633be47b04..198b0e1e0b2af 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesPostgreSqlTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesPostgreSqlTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesPostgreSqlTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesPostgreSqlTaskProperties.cs index 07aa077daf525..0737400e30e09 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesPostgreSqlTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesPostgreSqlTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlSyncTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlSyncTaskOutput.cs index 7f4eb861c8f1c..8dd891d774d7a 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlSyncTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlSyncTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlSyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlSyncTaskProperties.cs index 50d0957ab53d0..079c4328a4dc6 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlSyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlSyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlTaskOutput.cs index 480e8b1dd6036..3aa0012d977e5 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlTaskProperties.cs index 673f2e200bc4f..8881879eabae0 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/GetUserTablesSqlTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/InstallOciDriverTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/InstallOciDriverTaskOutput.cs index 26c765cb1eb24..1ab4e1523f1f3 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/InstallOciDriverTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/InstallOciDriverTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/InstallOciDriverTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/InstallOciDriverTaskProperties.cs index d08d3724caced..6720464984d61 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/InstallOciDriverTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/InstallOciDriverTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/IntegrationRuntimeMonitoringData.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/IntegrationRuntimeMonitoringData.cs index 6c37f1342ab4e..bf8376fe95d4f 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/IntegrationRuntimeMonitoringData.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/IntegrationRuntimeMonitoringData.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMISyncCompleteCommandOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMISyncCompleteCommandOutput.cs index bf678d2b171ae..e2e1b6cb31f6b 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMISyncCompleteCommandOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMISyncCompleteCommandOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMongoDBTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMongoDBTaskProperties.cs index 67e89f36fb95e..a93ea3ce32376 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMongoDBTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMongoDBTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlOfflineTaskOutputDatabaseLevel.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlOfflineTaskOutputDatabaseLevel.cs index 98ac6bc9c2800..44244e14370c9 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlOfflineTaskOutputDatabaseLevel.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlOfflineTaskOutputDatabaseLevel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlOfflineTaskOutputMigrationLevel.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlOfflineTaskOutputMigrationLevel.cs index d926d97fe755a..fbb4ac66c123e 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlOfflineTaskOutputMigrationLevel.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlOfflineTaskOutputMigrationLevel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlOfflineTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlOfflineTaskProperties.cs index d1b6bc0bfe5f7..3d47d77346044 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlOfflineTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlOfflineTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseError.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseError.cs index 36e2468d70620..c63adf569da0e 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseError.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlSyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlSyncTaskProperties.cs index 15e0f797b505e..f8e3c4dca1cc5 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlSyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateMySqlAzureDBForMySqlSyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateOracleAzureDBForPostgreSqlSyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateOracleAzureDBForPostgreSqlSyncTaskProperties.cs index fe7f4083aef12..8cfb3bd63fda6 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateOracleAzureDBForPostgreSqlSyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateOracleAzureDBForPostgreSqlSyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseError.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseError.cs index 40f2ec00416e2..1463c2a1dfb4e 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseError.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncDatabaseInput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncDatabaseInput.cs index dd10ecbd5a19a..c4ad8fd2bedec 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncDatabaseInput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncDatabaseInput.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseError.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseError.cs index 50c33d254cf5a..637c6b995f154 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseError.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputError.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputError.cs index 0b00b9bd4a34b..22efb913d0fcf 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputError.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncTaskProperties.cs index e4a25b0c15262..fdc5a5f29d577 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDBForPostgreSqlSyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSchemaSqlServerSqlDBTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSchemaSqlServerSqlDBTaskProperties.cs index 6723de238831c..2824b9f302033 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSchemaSqlServerSqlDBTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSchemaSqlServerSqlDBTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBSyncTaskOutputDatabaseError.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBSyncTaskOutputDatabaseError.cs index b74877676bdb6..3c88dc9818eef 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBSyncTaskOutputDatabaseError.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBSyncTaskOutputDatabaseError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBSyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBSyncTaskProperties.cs index 2bb96d08f5489..dff4be60531e4 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBSyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBSyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBTaskOutputDatabaseLevel.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBTaskOutputDatabaseLevel.cs index dddcdcc7f81ef..4750a85c27db4 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBTaskOutputDatabaseLevel.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBTaskOutputDatabaseLevel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBTaskOutputMigrationLevel.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBTaskOutputMigrationLevel.cs index 7e9ed47954135..00a9d12d98781 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBTaskOutputMigrationLevel.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBTaskOutputMigrationLevel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBTaskProperties.cs index 5e2467b87673f..1b818869708b8 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlDBTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMIDatabaseInput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMIDatabaseInput.cs index 010e3b9bafe9e..d30a20d3e7de2 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMIDatabaseInput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMIDatabaseInput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.cs index fbcf3f88682fa..79427c393f695 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMISyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMISyncTaskProperties.cs index 08ec81b3b60e5..bc053e349fb4f 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMISyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMISyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskInput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskInput.cs index 11216fecd83a1..c1dddd8404439 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskInput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskInput.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputAgentJobLevel.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputAgentJobLevel.cs index 4f5cdad6bfc27..9eb24ca94c8c4 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputAgentJobLevel.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputAgentJobLevel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputDatabaseLevel.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputDatabaseLevel.cs index be21d1cdaded7..71870ee3b641f 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputDatabaseLevel.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputDatabaseLevel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputLoginLevel.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputLoginLevel.cs index 816eb9b164e86..f2d75d553ba64 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputLoginLevel.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputLoginLevel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputMigrationLevel.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputMigrationLevel.cs index 46ce0e7af54c4..f0499832b128c 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputMigrationLevel.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskOutputMigrationLevel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskProperties.cs index 8aab2200288e4..cbb01b24808ab 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSqlServerSqlMITaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSsisTaskOutputMigrationLevel.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSsisTaskOutputMigrationLevel.cs index d4c277f16ea28..bcf8719b1fe33 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSsisTaskOutputMigrationLevel.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSsisTaskOutputMigrationLevel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSsisTaskOutputProjectLevel.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSsisTaskOutputProjectLevel.cs index 11c457883f2ad..61571769aefc4 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSsisTaskOutputProjectLevel.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSsisTaskOutputProjectLevel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSsisTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSsisTaskProperties.cs index 93a69626ef5a8..d3b6c6660a695 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSsisTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSsisTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSyncCompleteCommandOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSyncCompleteCommandOutput.cs index fd6e6418f153f..228b95ae848a8 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSyncCompleteCommandOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrateSyncCompleteCommandOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrationEligibilityInfo.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrationEligibilityInfo.cs index 4f2d5796c816d..1d735c33ff2fa 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrationEligibilityInfo.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrationEligibilityInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrationStatusDetails.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrationStatusDetails.cs index 538b1ad3bcc4a..1c6b4509767b7 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrationStatusDetails.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrationStatusDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ODataError.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ODataError.cs index d78b272e50e7c..e96559cbf19f5 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ODataError.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ODataError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/OracleOciDriverInfo.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/OracleOciDriverInfo.cs index 3b0a31fd46026..a7157707cf9cc 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/OracleOciDriverInfo.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/OracleOciDriverInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ProjectList.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ProjectList.cs index 40635fb823186..53dac983c500c 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ProjectList.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ProjectList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ProjectTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ProjectTaskProperties.cs index f2f08cff24f59..16ed498696b5c 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ProjectTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ProjectTaskProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/QuotaList.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/QuotaList.cs index 9c88dd5589986..866310872cd66 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/QuotaList.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/QuotaList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ResourceSku.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ResourceSku.cs index e62de736f657a..45c75bb413f7c 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ResourceSku.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ResourceSku.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ResourceSkuRestrictions.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ResourceSkuRestrictions.cs index 44cbc2857b2e7..0da601768f72b 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ResourceSkuRestrictions.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ResourceSkuRestrictions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ServiceSkuList.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ServiceSkuList.cs index 974c9e68eb37f..5adf6bd874f85 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ServiceSkuList.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ServiceSkuList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlBackupSetInfo.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlBackupSetInfo.cs index bca958c275854..afceac1247232 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlBackupSetInfo.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlBackupSetInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlDBMigrationStatusDetails.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlDBMigrationStatusDetails.cs index 2e62cedebe03e..9960639c9bcf1 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlDBMigrationStatusDetails.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlDBMigrationStatusDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlMigrationListResult.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlMigrationListResult.cs index 42dc4b4ebcf95..0820fc9be69ce 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlMigrationListResult.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/SqlMigrationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/TaskList.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/TaskList.cs index 06d1214d8bc2f..60c8dc48377b4 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/TaskList.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/TaskList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/UploadOciDriverTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/UploadOciDriverTaskOutput.cs index 0781aa3437849..4519a4d92e292 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/UploadOciDriverTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/UploadOciDriverTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/UploadOciDriverTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/UploadOciDriverTaskProperties.cs index 5d3d405642b6c..d6e2f4dc18f7f 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/UploadOciDriverTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/UploadOciDriverTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlDBSyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlDBSyncTaskProperties.cs index c1dd5e60d07e2..ab860507be2d7 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlDBSyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlDBSyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskOutput.cs index 94d4f84ba6b76..2eaabe286ff10 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskProperties.cs index 7d1a36c036a72..43c10bd2009e1 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMISyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskInput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskInput.cs index 355f3708af029..9714488e7bb1f 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskInput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskInput.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskOutput.cs index 4475651a43fef..8e6a1f41dd0ce 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskProperties.cs index 0035d41b10509..c87d8b02c9cd0 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMigrationInputSqlServerSqlMITaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMongoDBTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMongoDBTaskProperties.cs index 759a60c276c04..af89ea51aac22 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMongoDBTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateMongoDBTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateOracleAzureDBForPostgreSqlSyncTaskProperties.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateOracleAzureDBForPostgreSqlSyncTaskProperties.cs index 96d102126b54a..188a3e6d91392 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateOracleAzureDBForPostgreSqlSyncTaskProperties.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateOracleAzureDBForPostgreSqlSyncTaskProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateOracleAzureDBPostgreSqlSyncTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateOracleAzureDBPostgreSqlSyncTaskOutput.cs index 429ddae4f2312..f076046ab4a1d 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateOracleAzureDBPostgreSqlSyncTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateOracleAzureDBPostgreSqlSyncTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateSyncMigrationInputSqlServerTaskOutput.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateSyncMigrationInputSqlServerTaskOutput.cs index b9f838db2bc7f..c7e8d67d71570 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateSyncMigrationInputSqlServerTaskOutput.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/ValidateSyncMigrationInputSqlServerTaskOutput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataMigration; namespace Azure.ResourceManager.DataMigration.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Internal/ChangeTrackingList.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..048756e2e658a --- /dev/null +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DataProtectionBackup +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/AzureBackupJobResourceList.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/AzureBackupJobResourceList.cs index 0a31eefe19c3c..48959ca7e62a8 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/AzureBackupJobResourceList.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/AzureBackupJobResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/AzureBackupRecoveryPointResourceList.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/AzureBackupRecoveryPointResourceList.cs index e37c534cd47e9..195d708a06c37 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/AzureBackupRecoveryPointResourceList.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/AzureBackupRecoveryPointResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupFeatureValidationResult.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupFeatureValidationResult.cs index 9b0a5ef6c62d4..eac00c5830eb1 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupFeatureValidationResult.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupFeatureValidationResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupFindRestorableTimeRangeResultProperties.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupFindRestorableTimeRangeResultProperties.cs index 81e7b13663bcf..729018225af62 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupFindRestorableTimeRangeResultProperties.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupFindRestorableTimeRangeResultProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupInstancePolicySettings.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupInstancePolicySettings.cs index 9f1d9f8633f93..e89a1bf5c4561 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupInstancePolicySettings.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupInstancePolicySettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupInstanceResourceList.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupInstanceResourceList.cs index 8b996fb94e313..1bda24f141466 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupInstanceResourceList.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupInstanceResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupJobExtendedInfo.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupJobExtendedInfo.cs index d00e6f773df5e..a3389c9f0fc99 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupJobExtendedInfo.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupJobExtendedInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupSupportedFeature.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupSupportedFeature.cs index 6b5e55c688bcb..53f2d139a76b3 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupSupportedFeature.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupSupportedFeature.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupVaultResourceList.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupVaultResourceList.cs index 3f3f9203186b7..4b2a61c181d69 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupVaultResourceList.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BackupVaultResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BaseBackupPolicyResourceList.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BaseBackupPolicyResourceList.cs index 18fe71299d808..1ba7c3f8fb809 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BaseBackupPolicyResourceList.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/BaseBackupPolicyResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupDiscreteRecoveryPointProperties.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupDiscreteRecoveryPointProperties.cs index 9e5de623b7640..a4687863ae981 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupDiscreteRecoveryPointProperties.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupDiscreteRecoveryPointProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupJobProperties.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupJobProperties.cs index 009e0dfa656c4..913a9ff7b9959 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupJobProperties.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupJobProperties.cs @@ -10,6 +10,7 @@ using System.Linq; using Azure; using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupTaggingCriteria.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupTaggingCriteria.cs index a10b309a83369..79df1cb1d7d92 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupTaggingCriteria.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupTaggingCriteria.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupVaultProperties.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupVaultProperties.cs index 811b82db9f3bb..61f6bb0181c37 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupVaultProperties.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionBackupVaultProperties.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionUnlockDeleteContent.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionUnlockDeleteContent.cs index 022038e52e9a9..cd730a78c4524 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionUnlockDeleteContent.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionUnlockDeleteContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DeletedBackupInstanceResourceList.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DeletedBackupInstanceResourceList.cs index 8c5750e32e947..e140d1c938d0b 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DeletedBackupInstanceResourceList.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DeletedBackupInstanceResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DppBaseResourceList.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DppBaseResourceList.cs index 5b147f0e59ce8..55e09134af6a8 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DppBaseResourceList.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DppBaseResourceList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ItemPathBasedRestoreCriteria.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ItemPathBasedRestoreCriteria.cs index 8f587d72a95e4..4a2903201e6e1 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ItemPathBasedRestoreCriteria.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ItemPathBasedRestoreCriteria.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/KubernetesClusterBackupDataSourceSettings.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/KubernetesClusterBackupDataSourceSettings.cs index 19575047c983f..d30f006e3ada1 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/KubernetesClusterBackupDataSourceSettings.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/KubernetesClusterBackupDataSourceSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/KubernetesClusterRestoreCriteria.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/KubernetesClusterRestoreCriteria.cs index da52032da4793..0a76bc42937a1 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/KubernetesClusterRestoreCriteria.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/KubernetesClusterRestoreCriteria.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/KubernetesClusterVaultTierRestoreCriteria.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/KubernetesClusterVaultTierRestoreCriteria.cs index f9f16f216693c..55eaaa716dfeb 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/KubernetesClusterVaultTierRestoreCriteria.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/KubernetesClusterVaultTierRestoreCriteria.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProperties.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProperties.cs index 15788c9107fdf..04d55927d122d 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProperties.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProxyBase.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProxyBase.cs index 8ffd0418a062d..2fc1a69b81b5c 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProxyBase.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProxyBase.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.cs index 654d68b1d7ad7..ab67a3e811bed 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardResourceList.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardResourceList.cs index cf68d2d639b5c..cbd85c1e606e5 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardResourceList.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ResourceGuardResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ScheduleBasedBackupCriteria.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ScheduleBasedBackupCriteria.cs index 52c79c4115896..0cbe2903d0681 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ScheduleBasedBackupCriteria.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/ScheduleBasedBackupCriteria.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/SourceLifeCycle.cs b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/SourceLifeCycle.cs index eb81a65bdda58..d5e95b85dcd86 100644 --- a/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/SourceLifeCycle.cs +++ b/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/SourceLifeCycle.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataProtectionBackup; namespace Azure.ResourceManager.DataProtectionBackup.Models { diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Internal/ChangeTrackingList.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..6995a5673a571 --- /dev/null +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DataShare +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/TableLevelSharingProperties.cs b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/TableLevelSharingProperties.cs index 36d961e510725..b08850ae7e497 100644 --- a/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/TableLevelSharingProperties.cs +++ b/sdk/datashare/Azure.ResourceManager.DataShare/src/Generated/Models/TableLevelSharingProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DataShare; namespace Azure.ResourceManager.DataShare.Models { diff --git a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Internal/ChangeTrackingList.cs b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..0fcadd67d10b1 --- /dev/null +++ b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DefenderEasm +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Models/EasmLabelListResult.cs b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Models/EasmLabelListResult.cs index 77c750c427559..c4118e3abd394 100644 --- a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Models/EasmLabelListResult.cs +++ b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Models/EasmLabelListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DefenderEasm; namespace Azure.ResourceManager.DefenderEasm.Models diff --git a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Models/EasmWorkspaceListResult.cs b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Models/EasmWorkspaceListResult.cs index c2a53471986b0..f1bbbdea5cc62 100644 --- a/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Models/EasmWorkspaceListResult.cs +++ b/sdk/defendereasm/Azure.ResourceManager.DefenderEasm/src/Generated/Models/EasmWorkspaceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DefenderEasm; namespace Azure.ResourceManager.DefenderEasm.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Internal/ChangeTrackingList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..a5a5721dab2b4 --- /dev/null +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DesktopVirtualization +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ApplicationGroupList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ApplicationGroupList.cs index 9cb4c4ed99ff6..b45ed72c35655 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ApplicationGroupList.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ApplicationGroupList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ApplicationList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ApplicationList.cs index ecfc6d144135d..dcbd8440e083c 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ApplicationList.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ApplicationList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopList.cs index 0890e808b12f9..2fc4eca118767 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopList.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateLinkResourceData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateLinkResourceData.cs index 649ad0cb9e626..8170b768857f2 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateLinkResourceData.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateLinkResourceData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateLinkResourceListResult.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateLinkResourceListResult.cs index c749e6f9346c4..88b92e616193d 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateLinkResourceListResult.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DesktopVirtualizationPrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models { diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImage.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImage.cs index 860a113dc3539..15f4e49c3882b 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImage.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImage.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImageList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImageList.cs index f1b6ab80c01e0..4f6bf2d7574aa 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImageList.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ExpandMsixImageList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models { diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolList.cs index dfeb4240ea9b8..d47c9ff631174 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolList.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/HostPoolList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MsixPackageList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MsixPackageList.cs index 884c18f44ef74..f9564f81f9fff 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MsixPackageList.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/MsixPackageList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/PrivateEndpointConnectionListResultWithSystemData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/PrivateEndpointConnectionListResultWithSystemData.cs index 9ea5a7f5ad0d4..5477e6ca49b69 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/PrivateEndpointConnectionListResultWithSystemData.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/PrivateEndpointConnectionListResultWithSystemData.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanList.cs index 1ac111eea4487..24b5254f485e2 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanList.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPatch.cs index d8e464a03fab9..20a8995068e9c 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPatch.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models { diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPersonalScheduleList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPersonalScheduleList.cs index 82bec17bdbafd..bd50d424f5849 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPersonalScheduleList.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPersonalScheduleList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPersonalSchedulePatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPersonalSchedulePatch.cs index 0f78d81325a16..9b74647dd3bb3 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPersonalSchedulePatch.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPersonalSchedulePatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models { diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleList.cs index e94d28c4557dd..e9ba11c7d42bc 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleList.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledScheduleList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledSchedulePatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledSchedulePatch.cs index 413c8f7dac46a..a210989556699 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledSchedulePatch.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingPlanPooledSchedulePatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingSchedule.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingSchedule.cs index 283a3b653f9bf..6ec5de8bd9e42 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingSchedule.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ScalingSchedule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models { diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.cs index 802963ae815d9..8a017d9a16531 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdatePatchProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models { diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.cs index 1818b3811cfa9..cec594f85b7de 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostAgentUpdateProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models { diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostList.cs index ed80afd72388f..09eac6ed94b5d 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostList.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/SessionHostList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/StartMenuItemList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/StartMenuItemList.cs index 72c1eb49995dc..24c7579a49a9b 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/StartMenuItemList.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/StartMenuItemList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models { diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/UserSessionList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/UserSessionList.cs index 5993c7c2b0b9c..429bef0484aca 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/UserSessionList.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/UserSessionList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspacePatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspacePatch.cs index 822610ae0bdd5..c8dbeaa103146 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspacePatch.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/VirtualWorkspacePatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models { diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/WorkspaceList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/WorkspaceList.cs index f9f77c66683e0..2f53661757991 100644 --- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/WorkspaceList.cs +++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/WorkspaceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DesktopVirtualization; namespace Azure.ResourceManager.DesktopVirtualization.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Internal/ChangeTrackingList.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..dc9233c5b899e --- /dev/null +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DevCenter +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/AllowedEnvironmentTypeListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/AllowedEnvironmentTypeListResult.cs index bb0ca201183c8..aa3d8b78a4b8d 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/AllowedEnvironmentTypeListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/AllowedEnvironmentTypeListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/AttachedNetworkListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/AttachedNetworkListResult.cs index 945222b584cec..215b1f6918bc7 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/AttachedNetworkListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/AttachedNetworkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevBoxDefinitionListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevBoxDefinitionListResult.cs index 880fab601d15f..fd2b7c64e137b 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevBoxDefinitionListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevBoxDefinitionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterCatalogListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterCatalogListResult.cs index 147246d84ad7b..facdfabd81f9c 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterCatalogListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterCatalogListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterImageListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterImageListResult.cs index 575bb6e6745f7..3f3a80db8e362 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterImageListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterImageListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterListResult.cs index aa0ef07a26ae1..0c8ce10c4983d 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterSkuDetails.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterSkuDetails.cs index 6787688ea84dd..66b1730a6b5fb 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterSkuDetails.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/DevCenterSkuDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models { diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/EndpointDependency.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/EndpointDependency.cs index 299c04265923a..da69077ccd29e 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/EndpointDependency.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/EndpointDependency.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models { diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/EnvironmentTypeListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/EnvironmentTypeListResult.cs index 2dd9a91f6d8e2..2276bd97ed74e 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/EnvironmentTypeListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/EnvironmentTypeListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/GalleryListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/GalleryListResult.cs index 000f7b31bc27f..2460b44f313a4 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/GalleryListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/GalleryListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/HealthCheckStatusDetailsListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/HealthCheckStatusDetailsListResult.cs index dc83c9328206c..f76f92909cb70 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/HealthCheckStatusDetailsListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/HealthCheckStatusDetailsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ImageVersionListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ImageVersionListResult.cs index 62ae135f72e34..35c023cbe92e3 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ImageVersionListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ImageVersionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ListUsagesResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ListUsagesResult.cs index 89d280ad20a98..6d86b71466ea8 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ListUsagesResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ListUsagesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models { diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/NetworkConnectionListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/NetworkConnectionListResult.cs index 9b19f2ce23a89..2db8560abba51 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/NetworkConnectionListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/NetworkConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/OutboundEnvironmentEndpoint.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/OutboundEnvironmentEndpoint.cs index 5401fa3a66614..73ff93edb2c35 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/OutboundEnvironmentEndpoint.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/OutboundEnvironmentEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models { diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/OutboundEnvironmentEndpointCollection.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/OutboundEnvironmentEndpointCollection.cs index a39ac11d6e2b5..948c0404e817e 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/OutboundEnvironmentEndpointCollection.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/OutboundEnvironmentEndpointCollection.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models { diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/PoolListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/PoolListResult.cs index deca79d09fcdd..e80723991ce26 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/PoolListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/PoolListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ProjectEnvironmentTypeListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ProjectEnvironmentTypeListResult.cs index 923ba2b8f8b1e..33d9e1ae02fe7 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ProjectEnvironmentTypeListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ProjectEnvironmentTypeListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ProjectListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ProjectListResult.cs index d5130211d5adb..052f04439cf56 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ProjectListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ProjectListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ScheduleListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ScheduleListResult.cs index 5a7d10ce03bc7..d4210af0fdc6a 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ScheduleListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/ScheduleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/SkuListResult.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/SkuListResult.cs index 99ae883f350a6..8d5e620f018de 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/SkuListResult.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/Models/SkuListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevCenter; namespace Azure.ResourceManager.DevCenter.Models { diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Internal/ChangeTrackingList.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..6b66d3c8d3bba --- /dev/null +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DeviceProvisioningServices +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/CertificateListDescription.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/CertificateListDescription.cs index fe447851cd0e8..f7a42c46e1977 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/CertificateListDescription.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/CertificateListDescription.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DeviceProvisioningServices; namespace Azure.ResourceManager.DeviceProvisioningServices.Models diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServiceProperties.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServiceProperties.cs index 66a18c62415d4..b655c970c883b 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServiceProperties.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServiceProperties.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DeviceProvisioningServices; namespace Azure.ResourceManager.DeviceProvisioningServices.Models diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesPrivateLinkResourceProperties.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesPrivateLinkResourceProperties.cs index 9fb00fd7da61a..0fe0bc92556b1 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesPrivateLinkResourceProperties.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/DeviceProvisioningServicesPrivateLinkResourceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DeviceProvisioningServices; namespace Azure.ResourceManager.DeviceProvisioningServices.Models { diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/IotDpsSkuDefinitionListResult.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/IotDpsSkuDefinitionListResult.cs index 5dcc2259f4fdd..d62157297ffb9 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/IotDpsSkuDefinitionListResult.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/IotDpsSkuDefinitionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DeviceProvisioningServices; namespace Azure.ResourceManager.DeviceProvisioningServices.Models { diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/PrivateLinkResources.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/PrivateLinkResources.cs index 4970b50b45551..95fffc994e826 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/PrivateLinkResources.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/PrivateLinkResources.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DeviceProvisioningServices; namespace Azure.ResourceManager.DeviceProvisioningServices.Models diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/ProvisioningServiceDescriptionListResult.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/ProvisioningServiceDescriptionListResult.cs index 4e64e22df3ed5..6935b634ed6a9 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/ProvisioningServiceDescriptionListResult.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/ProvisioningServiceDescriptionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DeviceProvisioningServices; namespace Azure.ResourceManager.DeviceProvisioningServices.Models diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/SharedAccessSignatureAuthorizationRuleListResult.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/SharedAccessSignatureAuthorizationRuleListResult.cs index efb9115826547..215d9305a48f7 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/SharedAccessSignatureAuthorizationRuleListResult.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/src/Generated/Models/SharedAccessSignatureAuthorizationRuleListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DeviceProvisioningServices; namespace Azure.ResourceManager.DeviceProvisioningServices.Models { diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Internal/ChangeTrackingList.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..34ca04fd2f45b --- /dev/null +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DeviceUpdate +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/AccountList.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/AccountList.cs index 770a15917b41c..a0c03a2f42478 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/AccountList.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/AccountList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DeviceUpdate; namespace Azure.ResourceManager.DeviceUpdate.Models diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateEndpointConnectionListResult.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateEndpointConnectionListResult.cs index 64d5596c8c040..128fcf6c2df61 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateEndpointConnectionListResult.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DeviceUpdate; namespace Azure.ResourceManager.DeviceUpdate.Models diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkResourceListResult.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkResourceListResult.cs index bb77daa2fe616..1933a20e41fb1 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkResourceListResult.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DeviceUpdate; namespace Azure.ResourceManager.DeviceUpdate.Models diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkServiceConnection.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkServiceConnection.cs index e8c57d0d730b1..3e113f917510b 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkServiceConnection.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkServiceConnection.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DeviceUpdate; namespace Azure.ResourceManager.DeviceUpdate.Models { diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkServiceProxy.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkServiceProxy.cs index 247b0928a8372..05422c3260d57 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkServiceProxy.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateLinkServiceProxy.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DeviceUpdate; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.DeviceUpdate.Models diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateRemotePrivateEndpoint.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateRemotePrivateEndpoint.cs index 47e0bd83d43c3..4a3af0cc88075 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateRemotePrivateEndpoint.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateRemotePrivateEndpoint.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DeviceUpdate; namespace Azure.ResourceManager.DeviceUpdate.Models { diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/GroupConnectivityInformation.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/GroupConnectivityInformation.cs index ccf7ab65bd3db..3df3c7b899404 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/GroupConnectivityInformation.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/GroupConnectivityInformation.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DeviceUpdate; namespace Azure.ResourceManager.DeviceUpdate.Models { diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/InstanceList.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/InstanceList.cs index cce4ed30f383d..e2120afc579ca 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/InstanceList.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/InstanceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DeviceUpdate; namespace Azure.ResourceManager.DeviceUpdate.Models diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyListResult.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyListResult.cs index 8d44ff370f074..a1dcd2dd64b27 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyListResult.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DeviceUpdate; namespace Azure.ResourceManager.DeviceUpdate.Models diff --git a/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/Internal/ChangeTrackingList.cs b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..a56ed1bff1e8e --- /dev/null +++ b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DevSpaces +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/Models/ControllerConnectionDetailsList.cs b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/Models/ControllerConnectionDetailsList.cs index a0ccb8d407fb3..381b409c4380b 100644 --- a/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/Models/ControllerConnectionDetailsList.cs +++ b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/Models/ControllerConnectionDetailsList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevSpaces; namespace Azure.ResourceManager.DevSpaces.Models { diff --git a/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/Models/ControllerList.cs b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/Models/ControllerList.cs index e89571f772c5d..fcb7917e03f8e 100644 --- a/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/Models/ControllerList.cs +++ b/sdk/devspaces/Azure.ResourceManager.DevSpaces/src/Generated/Models/ControllerList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevSpaces; namespace Azure.ResourceManager.DevSpaces.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Internal/ChangeTrackingList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..e4847c04608a3 --- /dev/null +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DevTestLabs +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ArmTemplateList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ArmTemplateList.cs index 136ef588fcd18..5a2ee58c8e780 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ArmTemplateList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ArmTemplateList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ArtifactList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ArtifactList.cs index b8f3a9c6cc6a9..5257c06a9e8c1 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ArtifactList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ArtifactList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ArtifactSourceList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ArtifactSourceList.cs index 0ee2599141c23..d01fb3855e968 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ArtifactSourceList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ArtifactSourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ComputeVmProperties.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ComputeVmProperties.cs index 610f7539a48fa..441986cf8479a 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ComputeVmProperties.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ComputeVmProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models { diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/CustomImageList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/CustomImageList.cs index cf37f4f8ac6a1..ef466278e1095 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/CustomImageList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/CustomImageList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArtifactGenerateArmTemplateContent.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArtifactGenerateArmTemplateContent.cs index cec097393d75c..b0ac5301d6342 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArtifactGenerateArmTemplateContent.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArtifactGenerateArmTemplateContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models { diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArtifactInstallInfo.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArtifactInstallInfo.cs index eef93306fba58..90b5eed1388ec 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArtifactInstallInfo.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabArtifactInstallInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models { diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEnvironmentDeployment.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEnvironmentDeployment.cs index 07d2047f28076..2c11c606f9aa0 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEnvironmentDeployment.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEnvironmentDeployment.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models { diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEvaluatePoliciesContent.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEvaluatePoliciesContent.cs index aa921bbcc1a6c..7aad8a2dd2bf3 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEvaluatePoliciesContent.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEvaluatePoliciesContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models { diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEvaluatePoliciesResult.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEvaluatePoliciesResult.cs index 614537f259a7f..69ff6dfa36851 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEvaluatePoliciesResult.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabEvaluatePoliciesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models { diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabPolicySetResult.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabPolicySetResult.cs index 30413d322137a..281c4bd5cf5e4 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabPolicySetResult.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabPolicySetResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models { diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabTargetCost.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabTargetCost.cs index 53fe92755a3ee..d2265f067c75f 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabTargetCost.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabTargetCost.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models { diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVmApplyArtifactsContent.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVmApplyArtifactsContent.cs index 72bdc60a9e656..b4fd7ee990c31 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVmApplyArtifactsContent.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVmApplyArtifactsContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models { diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVmCreationContent.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVmCreationContent.cs index c341c339f121c..cf60770e26996 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVmCreationContent.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabVmCreationContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models { diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabWeekDetails.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabWeekDetails.cs index f72c6b77a951d..e9593d53c6121 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabWeekDetails.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DevTestLabWeekDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models { diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DiskList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DiskList.cs index 86b38092b568a..636e8f12baac9 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DiskList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DiskList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DtlEnvironmentList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DtlEnvironmentList.cs index a5b6ed17456e9..3ce334d4144a1 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DtlEnvironmentList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/DtlEnvironmentList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/FormulaList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/FormulaList.cs index 348bf4cd61ad9..9bbb4da01f4aa 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/FormulaList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/FormulaList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/GalleryImageList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/GalleryImageList.cs index dff9c60672e68..7f4daadcf1946 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/GalleryImageList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/GalleryImageList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models { diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/LabList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/LabList.cs index 6d9479c5ee7b8..90277283aa364 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/LabList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/LabList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/LabVhdList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/LabVhdList.cs index 75dccd40736cd..2588d1bec0b64 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/LabVhdList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/LabVhdList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevTestLabs; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/LabVmList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/LabVmList.cs index 001c49827fed9..20c2e31c5cd92 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/LabVmList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/LabVmList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/NotificationChannelList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/NotificationChannelList.cs index ff2eb3552073a..9e516dd916bfe 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/NotificationChannelList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/NotificationChannelList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/PolicyList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/PolicyList.cs index 100434df34a6e..a011d530aba63 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/PolicyList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/PolicyList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ScheduleList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ScheduleList.cs index ea7b916a6b4e4..9e773f3bb63f8 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ScheduleList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ScheduleList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/SecretList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/SecretList.cs index 25c33a56ec2b6..17be620192444 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/SecretList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/SecretList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ServiceFabricList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ServiceFabricList.cs index fabaf1cc723a4..82524de5f2465 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ServiceFabricList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/ServiceFabricList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/SharedPublicIPAddressConfiguration.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/SharedPublicIPAddressConfiguration.cs index e775afbec1057..5af9e09bc4f68 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/SharedPublicIPAddressConfiguration.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/SharedPublicIPAddressConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models { diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/SubnetSharedPublicIPAddressConfiguration.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/SubnetSharedPublicIPAddressConfiguration.cs index 9739745b5bfe2..4b29cc9b0c86f 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/SubnetSharedPublicIPAddressConfiguration.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/SubnetSharedPublicIPAddressConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models { diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/UserList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/UserList.cs index 29435a2b47eb6..c1ae258f2ae59 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/UserList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/UserList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/VirtualNetworkList.cs b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/VirtualNetworkList.cs index 1c046d54a0a75..d4c839e91ee01 100644 --- a/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/VirtualNetworkList.cs +++ b/sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/src/Generated/Models/VirtualNetworkList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DevTestLabs; namespace Azure.ResourceManager.DevTestLabs.Models diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Internal/ChangeTrackingList.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..99f76309f0aff --- /dev/null +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.DigitalTwins.Core +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ErrorInformation.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ErrorInformation.cs index 36c987b91981d..2cb18478172e1 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ErrorInformation.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ErrorInformation.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.DigitalTwins.Core { diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Internal/ChangeTrackingList.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..ccd0b5fe32cbf --- /dev/null +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DigitalTwins +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsDescriptionListResult.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsDescriptionListResult.cs index e722c61480984..b10ac2f2a3060 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsDescriptionListResult.cs +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsDescriptionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DigitalTwins; namespace Azure.ResourceManager.DigitalTwins.Models diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsEndpointResourceListResult.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsEndpointResourceListResult.cs index f8e1ae5a2201c..b3e036cfa6575 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsEndpointResourceListResult.cs +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsEndpointResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DigitalTwins; namespace Azure.ResourceManager.DigitalTwins.Models diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsPrivateEndpointConnectionProperties.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsPrivateEndpointConnectionProperties.cs index 534fe58b1daa7..fee8a051c697e 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsPrivateEndpointConnectionProperties.cs +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsPrivateEndpointConnectionProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DigitalTwins; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.DigitalTwins.Models diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsPrivateLinkResourceProperties.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsPrivateLinkResourceProperties.cs index b053af06efa6a..26506beef97ab 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsPrivateLinkResourceProperties.cs +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/DigitalTwinsPrivateLinkResourceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DigitalTwins; namespace Azure.ResourceManager.DigitalTwins.Models { diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/GroupIdInformationResponse.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/GroupIdInformationResponse.cs index 662608486a9f1..de9075ed060b0 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/GroupIdInformationResponse.cs +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/GroupIdInformationResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DigitalTwins; namespace Azure.ResourceManager.DigitalTwins.Models diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/PrivateEndpointConnectionsResponse.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/PrivateEndpointConnectionsResponse.cs index 453aa1af6faea..a5e9a9fd46db7 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/PrivateEndpointConnectionsResponse.cs +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/PrivateEndpointConnectionsResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DigitalTwins; namespace Azure.ResourceManager.DigitalTwins.Models diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/TimeSeriesDatabaseConnectionListResult.cs b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/TimeSeriesDatabaseConnectionListResult.cs index f8b3217aca588..aa9d546ff281d 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/TimeSeriesDatabaseConnectionListResult.cs +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Generated/Models/TimeSeriesDatabaseConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DigitalTwins; namespace Azure.ResourceManager.DigitalTwins.Models diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Internal/ChangeTrackingList.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..873a886971534 --- /dev/null +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Dns +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsRecordListResult.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsRecordListResult.cs index e198b48d12190..a28845dcd3231 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsRecordListResult.cs +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsRecordListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Dns; namespace Azure.ResourceManager.Dns.Models diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsResourceReference.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsResourceReference.cs index 3314e64b47bec..7ce0567f3c2e4 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsResourceReference.cs +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsResourceReference.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Dns; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Dns.Models diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsResourceReferenceContent.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsResourceReferenceContent.cs index 133685ce38d2d..fb521284cec51 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsResourceReferenceContent.cs +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsResourceReferenceContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Dns; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Dns.Models diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsResourceReferenceResult.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsResourceReferenceResult.cs index efc6b05d0d425..f5e965bbb011c 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsResourceReferenceResult.cs +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsResourceReferenceResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Dns; namespace Azure.ResourceManager.Dns.Models { diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsTxtRecordInfo.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsTxtRecordInfo.cs index 51f8d06a96168..cf490bcd82fff 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsTxtRecordInfo.cs +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsTxtRecordInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Dns; namespace Azure.ResourceManager.Dns.Models { diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsZoneListResult.cs b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsZoneListResult.cs index 75396bae48ffd..46f23654d3fd4 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsZoneListResult.cs +++ b/sdk/dns/Azure.ResourceManager.Dns/src/Generated/Models/DnsZoneListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Dns; namespace Azure.ResourceManager.Dns.Models diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Internal/ChangeTrackingList.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..b59acd7e3cdb2 --- /dev/null +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.DnsResolver +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulePatch.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulePatch.cs index d5a0f030aa973..144ed9e2227d6 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulePatch.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulePatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DnsResolver; namespace Azure.ResourceManager.DnsResolver.Models { diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulesetListResult.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulesetListResult.cs index aaff61029c20a..3135192776fc2 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulesetListResult.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulesetListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DnsResolver; namespace Azure.ResourceManager.DnsResolver.Models diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulesetPatch.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulesetPatch.cs index d4bf28f6deac5..6344fa3a74136 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulesetPatch.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsForwardingRulesetPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.DnsResolver; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.DnsResolver.Models diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsResolverListResult.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsResolverListResult.cs index 8475eba2c74b2..7a74b4b9c6c4b 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsResolverListResult.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/DnsResolverListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DnsResolver; namespace Azure.ResourceManager.DnsResolver.Models diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/ForwardingRuleListResult.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/ForwardingRuleListResult.cs index 3758a49ea59b2..c207c7af951d8 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/ForwardingRuleListResult.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/ForwardingRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DnsResolver; namespace Azure.ResourceManager.DnsResolver.Models diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/InboundEndpointListResult.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/InboundEndpointListResult.cs index 98ad60d540060..3c43e895e1194 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/InboundEndpointListResult.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/InboundEndpointListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DnsResolver; namespace Azure.ResourceManager.DnsResolver.Models diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/OutboundEndpointListResult.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/OutboundEndpointListResult.cs index d3d310800f24e..6e497350f7744 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/OutboundEndpointListResult.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/OutboundEndpointListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DnsResolver; namespace Azure.ResourceManager.DnsResolver.Models diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/SubResourceListResult.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/SubResourceListResult.cs index faae3862ea431..4edbb47fd448d 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/SubResourceListResult.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/SubResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DnsResolver; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.DnsResolver.Models diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/VirtualNetworkDnsForwardingRulesetListResult.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/VirtualNetworkDnsForwardingRulesetListResult.cs index af7ffa2d649de..cf13fcfb108e6 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/VirtualNetworkDnsForwardingRulesetListResult.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/VirtualNetworkDnsForwardingRulesetListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.DnsResolver; namespace Azure.ResourceManager.DnsResolver.Models { diff --git a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/VirtualNetworkLinkListResult.cs b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/VirtualNetworkLinkListResult.cs index 359f802d90033..a31f02176c43e 100644 --- a/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/VirtualNetworkLinkListResult.cs +++ b/sdk/dnsresolver/Azure.ResourceManager.DnsResolver/src/Generated/Models/VirtualNetworkLinkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.DnsResolver; namespace Azure.ResourceManager.DnsResolver.Models diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/AnalyzeResult.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/AnalyzeResult.cs index ff337dc815d7d..44d87a6fe6d43 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/AnalyzeResult.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/AnalyzeResult.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentBarcode.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentBarcode.cs index 32e39f3421002..b1d6a4a869ecd 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentBarcode.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentBarcode.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentCaption.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentCaption.cs index 1e8dd1a73f7f5..9c4c9be4f81bf 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentCaption.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentCaption.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentFigure.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentFigure.cs index 60016bcfe2a86..882a2b94b47bc 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentFigure.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentFigure.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentFootnote.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentFootnote.cs index c4ec0a3af6b9d..ccbe888328937 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentFootnote.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentFootnote.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentFormula.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentFormula.cs index 365e6debb4ae4..a5fb8e4c13bd1 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentFormula.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentFormula.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceError.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceError.cs index 52376a1a08778..8834e43d0e2b3 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceError.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceError.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentKeyValueElement.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentKeyValueElement.cs index 9bf75d1c5e20e..e099a66ee401d 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentKeyValueElement.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentKeyValueElement.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentLine.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentLine.cs index 9325fac3badca..b5b677dd42091 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentLine.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentLine.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentListItem.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentListItem.cs index c2c20bff825f7..2e678293abf98 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentListItem.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentListItem.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentPage.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentPage.cs index 9b9fb8e3bab75..a161d2167c730 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentPage.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentPage.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentParagraph.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentParagraph.cs index 9523df6969aab..db3131e1d7c2d 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentParagraph.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentParagraph.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentSection.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentSection.cs index d755bf1db8f25..d990936ee4d38 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentSection.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentSection.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentSelectionMark.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentSelectionMark.cs index 9e2dc033d1914..cc1d8e06cfa10 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentSelectionMark.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentSelectionMark.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentTable.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentTable.cs index 10ed69c99454a..c8ba9568e905b 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentTable.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentTable.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentTableCell.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentTableCell.cs index 75cbe9c4e04be..b61bd1449ce44 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentTableCell.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentTableCell.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentWord.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentWord.cs index ae3fc49e2d20e..e56aa8e97a483 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentWord.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentWord.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.DocumentIntelligence { diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/Internal/ChangeTrackingList.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..1cec4bdca5008 --- /dev/null +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.DocumentIntelligence +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Internal/ChangeTrackingList.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..939df6d224b34 --- /dev/null +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Dynatrace +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/AppServiceListResponse.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/AppServiceListResponse.cs index 8776276198918..6ffdbb67e2be8 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/AppServiceListResponse.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/AppServiceListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Dynatrace; namespace Azure.ResourceManager.Dynatrace.Models { diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceLogRules.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceLogRules.cs index f46c95755fcdc..e7af3851c5fcc 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceLogRules.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceLogRules.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Dynatrace; namespace Azure.ResourceManager.Dynatrace.Models { diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceMetricRules.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceMetricRules.cs index f25a089dc0e8d..3eea558b50d9d 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceMetricRules.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceMonitorResourceMetricRules.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Dynatrace; namespace Azure.ResourceManager.Dynatrace.Models { diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceSingleSignOnProperties.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceSingleSignOnProperties.cs index 2b4d25963b9f5..6b91db10543d6 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceSingleSignOnProperties.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceSingleSignOnProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Dynatrace; namespace Azure.ResourceManager.Dynatrace.Models { diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceSsoDetailsResult.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceSsoDetailsResult.cs index 564a6afebb5ca..2fa8dc515729c 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceSsoDetailsResult.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/DynatraceSsoDetailsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Dynatrace; namespace Azure.ResourceManager.Dynatrace.Models { diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/LinkableEnvironmentListResponse.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/LinkableEnvironmentListResponse.cs index 80ec240b50ad2..db8f878f52a52 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/LinkableEnvironmentListResponse.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/LinkableEnvironmentListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Dynatrace; namespace Azure.ResourceManager.Dynatrace.Models { diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/MonitoredResourceListResponse.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/MonitoredResourceListResponse.cs index c04312a1c756e..638d23cccf7bb 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/MonitoredResourceListResponse.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/MonitoredResourceListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Dynatrace; namespace Azure.ResourceManager.Dynatrace.Models { diff --git a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/VmHostsListResponse.cs b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/VmHostsListResponse.cs index fd340f79f5daa..ea13287ff51b1 100644 --- a/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/VmHostsListResponse.cs +++ b/sdk/dynatrace/Azure.ResourceManager.Dynatrace/src/Generated/Models/VmHostsListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Dynatrace; namespace Azure.ResourceManager.Dynatrace.Models { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AsAsset.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AsAsset.cs index 1d54bfc45c882..31f450dd77b69 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AsAsset.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AsAsset.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetPageResult.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetPageResult.cs index a3bafe2a2ff7d..316fc1fb9f71d 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetPageResult.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetPageResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetResource.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetResource.cs index 1874a1d30ec67..8ab733b104d44 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetResource.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetResource.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetSecurityPolicy.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetSecurityPolicy.cs index 5a881c26549d8..ec31abf5a9784 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetSecurityPolicy.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetSecurityPolicy.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetService.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetService.cs index 389e135cef30d..7a71f55c89814 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetService.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetService.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetSummaryResult.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetSummaryResult.cs index 1471ae1918108..8e379c20caddc 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetSummaryResult.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetSummaryResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AttributeDetails.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AttributeDetails.cs index c9841c7e1e476..99139ab6fed07 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AttributeDetails.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AttributeDetails.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/BannerDetails.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/BannerDetails.cs index 29e84cd40f643..093971750c093 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/BannerDetails.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/BannerDetails.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ContactAsset.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ContactAsset.cs index 610925b20ac63..22cbb9c1dec2a 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ContactAsset.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ContactAsset.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DependentResource.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DependentResource.cs index 05a9c42aecd5d..559a2c2225bb6 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DependentResource.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DependentResource.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryGroup.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryGroup.cs index ee5f70484585b..467ce65ae68da 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryGroup.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryGroup.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryGroupPayload.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryGroupPayload.cs index 92a366c7a0c53..fe4d08b8765a5 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryGroupPayload.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryGroupPayload.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryRunResult.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryRunResult.cs index 3b57cee1ded1e..519998d92795c 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryRunResult.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryRunResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryTemplate.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryTemplate.cs index 608198ff55379..928407683fad3 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryTemplate.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DiscoveryTemplate.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DomainAsset.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DomainAsset.cs index c0a58a26b158c..fc983acb23055 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DomainAsset.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DomainAsset.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ErrorDetail.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ErrorDetail.cs index adad42b9d10da..274ecb535cb0e 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ErrorDetail.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ErrorDetail.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/HostAsset.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/HostAsset.cs index 3fc51ec0a7898..4017c483e6e14 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/HostAsset.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/HostAsset.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/Internal/ChangeTrackingList.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..c0e8ccd841a5c --- /dev/null +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Analytics.Defender.Easm +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpAddressAsset.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpAddressAsset.cs index 8396572bcb49d..1ff8426dc2fd4 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpAddressAsset.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpAddressAsset.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpBlock.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpBlock.cs index 7d14ef41ddffc..8b47163399128 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpBlock.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpBlock.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpBlockAsset.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpBlockAsset.cs index 157625bc707dc..7e40a65685616 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpBlockAsset.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpBlockAsset.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedBoolean.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedBoolean.cs index 71513edb73ace..681c158cbb28c 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedBoolean.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedBoolean.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedInteger.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedInteger.cs index a8c803c12a222..2f7c7665a2206 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedInteger.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedInteger.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedIntegers.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedIntegers.cs index dc1822bd462c9..34d7885f80ebd 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedIntegers.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedIntegers.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedLocation.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedLocation.cs index 2ba9499a3bf4e..2714351db0f03 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedLocation.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedLocation.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedLong.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedLong.cs index 5497e7087fad1..91ccfda763413 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedLong.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedLong.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedString.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedString.cs index cff2f6027ec6e..e6ea84b00b3cd 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedString.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ObservedString.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/PageAsset.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/PageAsset.cs index d64d71f2b1756..71abc08dd88f5 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/PageAsset.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/PageAsset.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportAssetSummaryPayload.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportAssetSummaryPayload.cs index a3452b48d7cea..2b2370ae9c976 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportAssetSummaryPayload.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportAssetSummaryPayload.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportAssetSummaryResult.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportAssetSummaryResult.cs index 3c9f9c7526077..971557ed76790 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportAssetSummaryResult.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportAssetSummaryResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportBillableAssetSnapshotResult.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportBillableAssetSnapshotResult.cs index 6c33af66a9a73..fb84f719ad6b0 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportBillableAssetSnapshotResult.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportBillableAssetSnapshotResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportBillableAssetSummaryResult.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportBillableAssetSummaryResult.cs index 5c32ee903a457..24ae77a488c45 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportBillableAssetSummaryResult.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ReportBillableAssetSummaryResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ResourceUri.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ResourceUri.cs index cbfb631ed6cc0..49088f773ae80 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ResourceUri.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ResourceUri.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/SslCertAsset.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/SslCertAsset.cs index c2b1761af7088..2bf871bedad41 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/SslCertAsset.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/SslCertAsset.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/SslServerConfig.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/SslServerConfig.cs index 16dc5d8c54e8c..a589b1fa75b27 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/SslServerConfig.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/SslServerConfig.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/WebComponent.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/WebComponent.cs index 79f73a8f2b0f4..a4394b425a038 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/WebComponent.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/WebComponent.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Defender.Easm { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Internal/ChangeTrackingList.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..97a1651d5a9d9 --- /dev/null +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.EdgeOrder +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/AddressResourceList.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/AddressResourceList.cs index 93642138877b5..64886b9ecc8cc 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/AddressResourceList.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/AddressResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ConfigurationFilters.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ConfigurationFilters.cs index ab0248b500319..1255c0be27cb7 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ConfigurationFilters.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ConfigurationFilters.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/CustomerSubscriptionDetails.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/CustomerSubscriptionDetails.cs index 34e88fe3cba0f..5123fc94ecd1e 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/CustomerSubscriptionDetails.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/CustomerSubscriptionDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderItemDetails.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderItemDetails.cs index df42fd4c59ecb..c074d521de8d8 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderItemDetails.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderItemDetails.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderItemPatch.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderItemPatch.cs index b07c801803357..5b2b08d28715a 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderItemPatch.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderItemPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderProduct.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderProduct.cs index 341c05b21c47f..f8d12640fcf2b 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderProduct.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderProduct.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderProductCostInformation.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderProductCostInformation.cs index 3b64f6d69a3a8..16372b10afebf 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderProductCostInformation.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/EdgeOrderProductCostInformation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/OrderItemPreferences.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/OrderItemPreferences.cs index 802d5a32d1dee..acd450785d442 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/OrderItemPreferences.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/OrderItemPreferences.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/OrderItemResourceList.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/OrderItemResourceList.cs index b933636929cf7..974c6688a247d 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/OrderItemResourceList.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/OrderItemResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/OrderResourceList.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/OrderResourceList.cs index 8a5fce777f956..04f730e98f6bb 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/OrderResourceList.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/OrderResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductConfiguration.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductConfiguration.cs index fcfe903d398ab..4853b0ce98e6d 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductConfiguration.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductConfigurations.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductConfigurations.cs index 8650334166a76..dd1240e0560f4 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductConfigurations.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductConfigurations.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductDescription.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductDescription.cs index 7b43a91761f25..93e4ce0ed1023 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductDescription.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductDescription.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductDetails.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductDetails.cs index 8820f0cb08eb7..d109b75ee2f0b 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductDetails.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamilies.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamilies.cs index 95cf187e9b151..3002e91198eca 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamilies.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamilies.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamiliesMetadata.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamiliesMetadata.cs index 4d68830f96125..fd40d3c1972d2 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamiliesMetadata.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamiliesMetadata.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamiliesMetadataListResult.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamiliesMetadataListResult.cs index 1cd87868c7b89..9dc1e254a2dbf 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamiliesMetadataListResult.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamiliesMetadataListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamily.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamily.cs index 82286aba7cc9e..0f004314ef0a5 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamily.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductFamily.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductLine.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductLine.cs index 5ccdcd01ea51f..c7d5da63aef79 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductLine.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/Models/ProductLine.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EdgeOrder; namespace Azure.ResourceManager.EdgeOrder.Models { diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Internal/ChangeTrackingList.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..cd536536b76cd --- /dev/null +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Elastic +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/ElasticMonitorResourceListResponse.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/ElasticMonitorResourceListResponse.cs index 1661ef3925ea4..1d9e7cbe16160 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/ElasticMonitorResourceListResponse.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/ElasticMonitorResourceListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Elastic; namespace Azure.ResourceManager.Elastic.Models diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/LogRules.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/LogRules.cs index 0cf7f8327206a..f6df4cb4769ef 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/LogRules.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/LogRules.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Elastic; namespace Azure.ResourceManager.Elastic.Models { diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/MonitoredResourceListResponse.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/MonitoredResourceListResponse.cs index 398e017989d6a..009a89dc760d7 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/MonitoredResourceListResponse.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/MonitoredResourceListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Elastic; namespace Azure.ResourceManager.Elastic.Models { diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/MonitoringTagRulesListResponse.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/MonitoringTagRulesListResponse.cs index f4232c7ed3fcb..d288f8e473d95 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/MonitoringTagRulesListResponse.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/MonitoringTagRulesListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Elastic; namespace Azure.ResourceManager.Elastic.Models diff --git a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/VmHostListResponse.cs b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/VmHostListResponse.cs index 69174ca786823..56fba32c58d48 100644 --- a/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/VmHostListResponse.cs +++ b/sdk/elastic/Azure.ResourceManager.Elastic/src/Generated/Models/VmHostListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Elastic; namespace Azure.ResourceManager.Elastic.Models { diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Internal/ChangeTrackingList.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..3d4522b0d0039 --- /dev/null +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ElasticSan +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanList.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanList.cs index 477a7a4dee4a6..0fa27474d953d 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanList.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ElasticSan; namespace Azure.ResourceManager.ElasticSan.Models diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateEndpointConnectionListResult.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateEndpointConnectionListResult.cs index 4c0a5e2abb9aa..da2dee40f9b9b 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateEndpointConnectionListResult.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ElasticSan; namespace Azure.ResourceManager.ElasticSan.Models diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateLinkResource.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateLinkResource.cs index f1c94b9465f51..2f395fba08678 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateLinkResource.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateLinkResource.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ElasticSan; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.ElasticSan.Models diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateLinkResourceListResult.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateLinkResourceListResult.cs index 89f529c4f63f8..f5ce3e9c78bb0 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateLinkResourceListResult.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanPrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ElasticSan; namespace Azure.ResourceManager.ElasticSan.Models { diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSkuInformation.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSkuInformation.cs index 141e650abc2b5..d480a2a0986e9 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSkuInformation.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSkuInformation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ElasticSan; namespace Azure.ResourceManager.ElasticSan.Models { diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSkuInformationList.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSkuInformationList.cs index f5a030a6b1037..1f13ea1b26d85 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSkuInformationList.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSkuInformationList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ElasticSan; namespace Azure.ResourceManager.ElasticSan.Models { diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSkuLocationInfo.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSkuLocationInfo.cs index 8a0e5d9144fb8..55d00706d7d4c 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSkuLocationInfo.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanSkuLocationInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ElasticSan; namespace Azure.ResourceManager.ElasticSan.Models { diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVolumeGroupList.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVolumeGroupList.cs index 63ed231a62eb2..c21655c55ff2f 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVolumeGroupList.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVolumeGroupList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ElasticSan; namespace Azure.ResourceManager.ElasticSan.Models diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVolumeList.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVolumeList.cs index fddedb71c2835..3eb3ffc38a09a 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVolumeList.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/ElasticSanVolumeList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ElasticSan; namespace Azure.ResourceManager.ElasticSan.Models diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/NetworkRuleSet.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/NetworkRuleSet.cs index 81a5e9c0d06f5..d104e8ca37877 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/NetworkRuleSet.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/NetworkRuleSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ElasticSan; namespace Azure.ResourceManager.ElasticSan.Models { diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/SnapshotList.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/SnapshotList.cs index cbff908358a6a..7fa41bd99fb9c 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/SnapshotList.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Generated/Models/SnapshotList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ElasticSan; namespace Azure.ResourceManager.ElasticSan.Models diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Internal/ChangeTrackingList.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..d63a90d1e0f93 --- /dev/null +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Messaging.EventGrid +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedEventData.Serialization.cs index ee11ce658ee58..0500d2b8ac3a0 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedEventData.cs index 5b4318030fc98..d4fe60effe48e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedEventData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedWithUserEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedWithUserEventData.Serialization.cs index 2fbb00d1f0926..b806f9084421f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedWithUserEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedWithUserEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedWithUserEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedWithUserEventData.cs index 7730e3f5004d4..9b4330c55af51 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedWithUserEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedWithUserEventData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingStorageInfoProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingStorageInfoProperties.Serialization.cs index fa34be238dfd0..8616bfdefe12c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingStorageInfoProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingStorageInfoProperties.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingStorageInfoProperties.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingStorageInfoProperties.cs index e487826a77c64..626d36d01718b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingStorageInfoProperties.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingStorageInfoProperties.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterCommunicationError.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterCommunicationError.Serialization.cs index dcfd7e97028d6..2e6dc43af7fd8 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterCommunicationError.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterCommunicationError.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterCommunicationError.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterCommunicationError.cs index b4b939443c153..1f50beecd00ca 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterCommunicationError.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterCommunicationError.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassificationFailedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassificationFailedEventData.Serialization.cs index d2369dd823daa..50a3dfedc12d4 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassificationFailedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassificationFailedEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassificationFailedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassificationFailedEventData.cs index ab8100723567c..73ff3c91d48d4 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassificationFailedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassificationFailedEventData.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassifiedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassifiedEventData.Serialization.cs index f20afbc7b73cd..c5d3e28977e35 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassifiedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassifiedEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassifiedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassifiedEventData.cs index 558e458fc9df6..8ae03b17ca2b6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassifiedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassifiedEventData.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobQueuedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobQueuedEventData.Serialization.cs index 1f433feb42e8f..9511478614bf5 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobQueuedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobQueuedEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobQueuedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobQueuedEventData.cs index 576d8e033a9a7..75408d3a7347e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobQueuedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobQueuedEventData.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobReceivedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobReceivedEventData.Serialization.cs index 5bdaaa879fd80..796201865745e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobReceivedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobReceivedEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobReceivedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobReceivedEventData.cs index 4aa4aec8f1b5d..f8bbf36979f34 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobReceivedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobReceivedEventData.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobSchedulingFailedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobSchedulingFailedEventData.Serialization.cs index ca0bec061fb54..ec959169591fb 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobSchedulingFailedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobSchedulingFailedEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobSchedulingFailedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobSchedulingFailedEventData.cs index d373d11ed0a56..69fcb1efc6e66 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobSchedulingFailedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobSchedulingFailedEventData.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWaitingForActivationEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWaitingForActivationEventData.Serialization.cs index 90cce2c040ec0..72e5e8f153b5c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWaitingForActivationEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWaitingForActivationEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWaitingForActivationEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWaitingForActivationEventData.cs index 1a5c4ee5a66bc..29b1158c4ce42 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWaitingForActivationEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWaitingForActivationEventData.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWorkerSelectorsExpiredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWorkerSelectorsExpiredEventData.Serialization.cs index f25d7034f976c..866831484d237 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWorkerSelectorsExpiredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWorkerSelectorsExpiredEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWorkerSelectorsExpiredEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWorkerSelectorsExpiredEventData.cs index 5a4255c0c3d30..3a70042d70e36 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWorkerSelectorsExpiredEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWorkerSelectorsExpiredEventData.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerRegisteredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerRegisteredEventData.Serialization.cs index cf0664223d5a2..6955927d26818 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerRegisteredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerRegisteredEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerRegisteredEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerRegisteredEventData.cs index dba710e26cc6f..e07c6a97ce635 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerRegisteredEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerRegisteredEventData.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryReportReceivedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryReportReceivedEventData.Serialization.cs index 7c55f5db389de..f1967be9f104d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryReportReceivedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryReportReceivedEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryReportReceivedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryReportReceivedEventData.cs index b0a7228463041..d9d7482f508f3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryReportReceivedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryReportReceivedEventData.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterCreatedEventData.Serialization.cs index eadb702b1aeb2..f3314c20d58fe 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterCreatedEventData.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterDeletedEventData.Serialization.cs index aa00eb4969ac5..aadbc35f4986e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterDeletedEventData.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterEventData.Serialization.cs index 9e168a1f34082..bf1acdd03e791 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterEventData.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterEventData.cs index 0b9af56e07095..469db334beb36 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterEventData.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterFailedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterFailedEventData.Serialization.cs index a81eec8a85e81..0b3253383f18c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterFailedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterFailedEventData.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatedEventData.Serialization.cs index b96c8bda4ec0c..63f438621137e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatedEventData.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatingEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatingEventData.Serialization.cs index 5dda2a762d162..8837debbef15a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatingEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatingEventData.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionCancelledEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionCancelledEventData.Serialization.cs index 114926ddb9c61..33cfb6eade02b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionCancelledEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionCancelledEventData.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionEventData.Serialization.cs index be1042c1f30e0..c3d493f1be5c9 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionEventData.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionEventData.cs index 28538891d34c8..30019dd9a175f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionEventData.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFailedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFailedEventData.Serialization.cs index 5962f6b210ea2..d19391f12fff8 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFailedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFailedEventData.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFinishedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFinishedEventData.Serialization.cs index 0eba78000a581..6f597641ecf9a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFinishedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFinishedEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionStartedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionStartedEventData.Serialization.cs index 01316f9fdf60d..fc9c2e537e1c2 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionStartedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionStartedEventData.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEnteredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEnteredEventData.Serialization.cs index 216625755c5b6..07fb1e3bb335f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEnteredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEnteredEventData.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEventProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEventProperties.Serialization.cs index 2fb4e0e8ee76e..70e51a695716c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEventProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEventProperties.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEventProperties.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEventProperties.cs index 7565a8ff677f5..53ba31ede0edf 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEventProperties.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEventProperties.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceExitedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceExitedEventData.Serialization.cs index fa96ec99f690a..c0f81f57f024c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceExitedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceExitedEventData.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceResultEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceResultEventData.Serialization.cs index 652fe5f40684e..10c52276afe3b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceResultEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceResultEventData.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCanceledEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCanceledEventData.Serialization.cs index b41fbc71192d3..cdfc0eb798acd 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCanceledEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCanceledEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCanceledEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCanceledEventData.cs index 938b134a08bdb..4ef048fb4529b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCanceledEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCanceledEventData.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobError.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobError.Serialization.cs index ee444a1052986..43ca07a29904f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobError.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobError.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobError.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobError.cs index fab96a0608afa..c763cd27921ea 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobError.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobError.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErroredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErroredEventData.Serialization.cs index b1a79db8d1ee3..88838e436cd2d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErroredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErroredEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErroredEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErroredEventData.cs index 70d292b1b1175..dafd47a272521 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErroredEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErroredEventData.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobFinishedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobFinishedEventData.Serialization.cs index 96a43bb68de54..a02763f44a1d3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobFinishedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobFinishedEventData.Serialization.cs @@ -10,6 +10,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobFinishedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobFinishedEventData.cs index e2152800d525b..fd4264c8a1e4f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobFinishedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobFinishedEventData.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Messaging.EventGrid; namespace Azure.Messaging.EventGrid.SystemEvents { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Internal/ChangeTrackingList.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..98a9d73c1e9d4 --- /dev/null +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.EventGrid +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/AzureFunctionEventSubscriptionDestination.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/AzureFunctionEventSubscriptionDestination.cs index d86d0452e5247..4ad09576eae0d 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/AzureFunctionEventSubscriptionDestination.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/AzureFunctionEventSubscriptionDestination.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/CaCertificatesListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/CaCertificatesListResult.cs index 51396bfadb302..6f72b10a04406 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/CaCertificatesListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/CaCertificatesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ChannelsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ChannelsListResult.cs index 1fa660d91ed1c..c3681ca65b705 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ChannelsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ChannelsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientAuthenticationSettings.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientAuthenticationSettings.cs index 42960b2031261..214f28cb3f448 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientAuthenticationSettings.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientAuthenticationSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientCertificateAuthentication.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientCertificateAuthentication.cs index cc73c69649a0c..ebf34adb3dcb8 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientCertificateAuthentication.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientCertificateAuthentication.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientGroupsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientGroupsListResult.cs index 164f7dd0ceb54..cec44e0b0e867 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientGroupsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientGroupsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientsListResult.cs index 548633a0f434d..7655a57a05543 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ClientsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DeliveryAttributeListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DeliveryAttributeListResult.cs index 0917bd875907d..36c0769445206 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DeliveryAttributeListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DeliveryAttributeListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainTopicsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainTopicsListResult.cs index ada3ca0bc7103..f821950955420 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainTopicsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainTopicsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainsListResult.cs index 92960bb0f6862..6dfc70c239981 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/DomainsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridDomainPatch.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridDomainPatch.cs index bfe2904216ee8..44fe2af0cfb49 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridDomainPatch.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridDomainPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.EventGrid; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespacePatch.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespacePatch.cs index 24afabee824ae..decc6df6b8682 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespacePatch.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridNamespacePatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.EventGrid; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridPrivateEndpointConnectionListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridPrivateEndpointConnectionListResult.cs index eafcc9458d496..ef35852c8fe99 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridPrivateEndpointConnectionListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridSubscriptionPatch.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridSubscriptionPatch.cs index 3586f59edb151..18b9ea37b78cc 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridSubscriptionPatch.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridSubscriptionPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridTopicPatch.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridTopicPatch.cs index eb4dd616030c5..518b53f2c8b2a 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridTopicPatch.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventGridTopicPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.EventGrid; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventHubEventSubscriptionDestination.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventHubEventSubscriptionDestination.cs index f338492e84bec..b611a2b4e34fe 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventHubEventSubscriptionDestination.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventHubEventSubscriptionDestination.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventSubscriptionFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventSubscriptionFilter.cs index 2d6881199318b..da7bcb65403c7 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventSubscriptionFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventSubscriptionFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventSubscriptionsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventSubscriptionsListResult.cs index 7ad7389fb06a8..34da0ab467705 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventSubscriptionsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventSubscriptionsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventTypesListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventTypesListResult.cs index 020ad5ebd8c97..56a4577f25d01 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventTypesListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/EventTypesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/FiltersConfiguration.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/FiltersConfiguration.cs index 525ca805329d2..7b40e6df757ec 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/FiltersConfiguration.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/FiltersConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/HybridConnectionEventSubscriptionDestination.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/HybridConnectionEventSubscriptionDestination.cs index 8bfe894239612..cfc8304961fbd 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/HybridConnectionEventSubscriptionDestination.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/HybridConnectionEventSubscriptionDestination.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/MonitorAlertEventSubscriptionDestination.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/MonitorAlertEventSubscriptionDestination.cs index 906ddd011b615..ac1b8e0e2689c 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/MonitorAlertEventSubscriptionDestination.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/MonitorAlertEventSubscriptionDestination.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NamespaceTopicsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NamespaceTopicsListResult.cs index 4d5a8b34f5053..fe8968cea083d 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NamespaceTopicsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NamespaceTopicsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NamespacesListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NamespacesListResult.cs index a7af14cb8519d..d1a73d80e57a6 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NamespacesListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NamespacesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterConfigurationIssues.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterConfigurationIssues.cs index 0bfa47e17a6d2..8bb5cd5e9bc07 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterConfigurationIssues.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterConfigurationIssues.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterConfigurationList.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterConfigurationList.cs index 9bde6984346be..577465316c9f4 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterConfigurationList.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterConfigurationList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterConfigurationProfile.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterConfigurationProfile.cs index b669429737a51..60c83dcc93c5d 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterConfigurationProfile.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterConfigurationProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterProfileAccessRule.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterProfileAccessRule.cs index 83c8788a78b9c..d78a6d2b255fc 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterProfileAccessRule.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NetworkSecurityPerimeterProfileAccessRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInAdvancedFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInAdvancedFilter.cs index f98bf83d4efa9..6953d6b5e5187 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInAdvancedFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInAdvancedFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInFilter.cs index f2640bfeecb0d..5abbc9d9f54a4 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInRangeAdvancedFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInRangeAdvancedFilter.cs index d5c1be9f6a420..ed9365650ae3f 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInRangeAdvancedFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInRangeAdvancedFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInRangeFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInRangeFilter.cs index f5eca5f37b6f0..b3e88d3d621c0 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInRangeFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberInRangeFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInAdvancedFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInAdvancedFilter.cs index 5499550e3950a..2b7732f6a1a6a 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInAdvancedFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInAdvancedFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInFilter.cs index 001ad69136a99..d5f80c1b5d678 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInRangeAdvancedFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInRangeAdvancedFilter.cs index 09c836c4896b0..15b5b7ccdc50e 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInRangeAdvancedFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInRangeAdvancedFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInRangeFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInRangeFilter.cs index 1c8dccbdef70e..adc826074d572 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInRangeFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/NumberNotInRangeFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerAuthorization.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerAuthorization.cs index 277e9ac85d8b6..154e2eef8f945 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerAuthorization.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerAuthorization.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerConfigurationsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerConfigurationsListResult.cs index 9ee821f671c78..16e673b841ee5 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerConfigurationsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerConfigurationsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerDestinationInfo.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerDestinationInfo.cs index e9fd005180626..1c11b7fe09809 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerDestinationInfo.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerDestinationInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerDestinationsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerDestinationsListResult.cs index 01138419f71b7..008be5a3ef41f 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerDestinationsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerDestinationsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespacePatch.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespacePatch.cs index 722fba850816d..55f65dc318cee 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespacePatch.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespacePatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespacesListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespacesListResult.cs index 7281911493951..d5bf611428d5c 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespacesListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerNamespacesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerRegistrationsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerRegistrationsListResult.cs index 94ae33d732eec..3254fe7105d40 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerRegistrationsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerRegistrationsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerTopicsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerTopicsListResult.cs index 03bd474d9b7d9..2579cbe5fa5cf 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerTopicsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PartnerTopicsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PermissionBindingsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PermissionBindingsListResult.cs index 98e65fddde10d..de0ab2a9ab9d1 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PermissionBindingsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PermissionBindingsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PrivateLinkResourcesListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PrivateLinkResourcesListResult.cs index daf1adaab9373..e45a5e9eb5567 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PrivateLinkResourcesListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/PrivateLinkResourcesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/RoutingEnrichments.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/RoutingEnrichments.cs index 3890c2dff5f00..ec1c7a8055085 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/RoutingEnrichments.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/RoutingEnrichments.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ServiceBusQueueEventSubscriptionDestination.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ServiceBusQueueEventSubscriptionDestination.cs index 148d266239094..b7a138c2f3615 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ServiceBusQueueEventSubscriptionDestination.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ServiceBusQueueEventSubscriptionDestination.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ServiceBusTopicEventSubscriptionDestination.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ServiceBusTopicEventSubscriptionDestination.cs index 28e4064b6802b..fc99bfb867afd 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ServiceBusTopicEventSubscriptionDestination.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/ServiceBusTopicEventSubscriptionDestination.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringBeginsWithAdvancedFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringBeginsWithAdvancedFilter.cs index b48081d0f1dca..a753ba0cc6e50 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringBeginsWithAdvancedFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringBeginsWithAdvancedFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringBeginsWithFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringBeginsWithFilter.cs index 624b57154e7a4..ea344727c5cd4 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringBeginsWithFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringBeginsWithFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringContainsAdvancedFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringContainsAdvancedFilter.cs index eede3386b366f..b4678c0a53dce 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringContainsAdvancedFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringContainsAdvancedFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringContainsFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringContainsFilter.cs index ff1f3b3e7df48..24f40b38071b7 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringContainsFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringContainsFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringEndsWithAdvancedFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringEndsWithAdvancedFilter.cs index e49877fff893e..bcd24d477e523 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringEndsWithAdvancedFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringEndsWithAdvancedFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringEndsWithFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringEndsWithFilter.cs index d0186b9628dff..2eca5862d589e 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringEndsWithFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringEndsWithFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringInAdvancedFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringInAdvancedFilter.cs index e977db89a7428..96d7b1975b1ec 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringInAdvancedFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringInAdvancedFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringInFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringInFilter.cs index a1c587380c231..d8f257e137077 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringInFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringInFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotBeginsWithAdvancedFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotBeginsWithAdvancedFilter.cs index 4d72fd3a4f3b9..95a9bfd1a5d97 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotBeginsWithAdvancedFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotBeginsWithAdvancedFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotBeginsWithFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotBeginsWithFilter.cs index e7f683b3baa31..747bbbc93e4ea 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotBeginsWithFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotBeginsWithFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotContainsAdvancedFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotContainsAdvancedFilter.cs index 49e5d46ee7bc1..3b8d208cc42e5 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotContainsAdvancedFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotContainsAdvancedFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotContainsFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotContainsFilter.cs index 22f262fdb9538..f202c1b302580 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotContainsFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotContainsFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotEndsWithAdvancedFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotEndsWithAdvancedFilter.cs index c674f92b32a54..e9adcbd899ed4 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotEndsWithAdvancedFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotEndsWithAdvancedFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotEndsWithFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotEndsWithFilter.cs index 6fec1c3242b36..6ab15b7d5aa0a 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotEndsWithFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotEndsWithFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotInAdvancedFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotInAdvancedFilter.cs index 1b58d94e1f45d..b616ba0e9ccd8 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotInAdvancedFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotInAdvancedFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotInFilter.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotInFilter.cs index 060fc2bad35f9..a5aca43696e93 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotInFilter.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/StringNotInFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/SubscriptionsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/SubscriptionsListResult.cs index 69f78711d8cc9..a68a6240c4e74 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/SubscriptionsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/SubscriptionsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/SystemTopicsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/SystemTopicsListResult.cs index 06a3ca87885d1..e79d4d0f26c7c 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/SystemTopicsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/SystemTopicsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicSpacesListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicSpacesListResult.cs index 4d06c0d968c9b..5ba67e123c8b3 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicSpacesListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicSpacesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicTypesListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicTypesListResult.cs index 4891d9c679c54..b49079f6b2647 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicTypesListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicTypesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicsListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicsListResult.cs index ec1cda2980852..46a9aa01e731d 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicsListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/TopicsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/VerifiedPartnersListResult.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/VerifiedPartnersListResult.cs index 807300b513f59..773c487e3c9a0 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/VerifiedPartnersListResult.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/VerifiedPartnersListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/WebHookEventSubscriptionDestination.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/WebHookEventSubscriptionDestination.cs index 612619942b8e8..47e610fd802cc 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/WebHookEventSubscriptionDestination.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Models/WebHookEventSubscriptionDestination.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventGrid; namespace Azure.ResourceManager.EventGrid.Models { diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Internal/ChangeTrackingList.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..a57bba847ddf4 --- /dev/null +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.EventHubs +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ArmDisasterRecoveryListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ArmDisasterRecoveryListResult.cs index 47bc6e5f828b7..98f9381e4d84b 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ArmDisasterRecoveryListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ArmDisasterRecoveryListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/AuthorizationRuleListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/AuthorizationRuleListResult.cs index f1f5a246e8125..a5284aa6bd65b 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/AuthorizationRuleListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/AuthorizationRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/AvailableClustersList.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/AvailableClustersList.cs index 08d36d1edfa2e..a88a5b744d8f9 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/AvailableClustersList.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/AvailableClustersList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models { diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterListResult.cs index 82867d2c734ff..76c11edf96f3c 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ConsumerGroupListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ConsumerGroupListResult.cs index b17c84bd4ed0a..bea2c1f66f693 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ConsumerGroupListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/ConsumerGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceIdListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceIdListResult.cs index cce17ae60ca9e..86b56f584c5ac 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceIdListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceIdListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventHubs; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.EventHubs.Models diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceListResult.cs index 34ec546e288ef..84f5448688f4b 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EHNamespaceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubListResult.cs index 3e521be7a35ac..c613c9dfffe01 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsApplicationGroupListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsApplicationGroupListResult.cs index abd36134bc707..ab4980505959f 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsApplicationGroupListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsApplicationGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsEncryption.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsEncryption.cs index bfccce68c9527..fcf6b5a65def4 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsEncryption.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsEncryption.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models { diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfiguration.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfiguration.cs index 55e837355f10e..612b095d46498 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfiguration.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.EventHubs; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.EventHubs.Models diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile.cs index 946a4ceb92aa3..33e5e9b3e514a 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNetworkSecurityPerimeterConfigurationPropertiesProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models { diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNspAccessRuleProperties.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNspAccessRuleProperties.cs index 72d9e58af2cff..a435b23520528 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNspAccessRuleProperties.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsNspAccessRuleProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventHubs; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.EventHubs.Models diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionListResult.cs index 3b1284830585d..e6d6edbaec3a7 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResourceData.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResourceData.cs index 4ed11d4bcf002..d6d2aaa95807d 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResourceData.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/EventHubsPrivateLinkResourceData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.EventHubs; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.EventHubs.Models diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetListResult.cs index 84afaa298de40..bf9531b137994 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkRuleSetListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkSecurityPerimeterConfigurationList.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkSecurityPerimeterConfigurationList.cs index 3d36d500e3897..06b3995d8d47f 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkSecurityPerimeterConfigurationList.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/NetworkSecurityPerimeterConfigurationList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models { diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PrivateLinkResourcesListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PrivateLinkResourcesListResult.cs index 95761784f97a9..f227620f20fa1 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PrivateLinkResourcesListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/PrivateLinkResourcesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models { diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/SchemaGroupListResult.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/SchemaGroupListResult.cs index 1f6f673ea722d..5f92cec25e49b 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/SchemaGroupListResult.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/Models/SchemaGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EventHubs; namespace Azure.ResourceManager.EventHubs.Models diff --git a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Internal/ChangeTrackingList.cs b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..a1e90fe8fd8ce --- /dev/null +++ b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ExtendedLocations +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationEnabledResourceType.cs b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationEnabledResourceType.cs index ff649dcf5d2ba..f39694f383bf7 100644 --- a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationEnabledResourceType.cs +++ b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationEnabledResourceType.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ExtendedLocations; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.ExtendedLocations.Models diff --git a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationEnabledResourceTypesResult.cs b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationEnabledResourceTypesResult.cs index ae20daaafddfa..7838fb9189a24 100644 --- a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationEnabledResourceTypesResult.cs +++ b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationEnabledResourceTypesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ExtendedLocations; namespace Azure.ResourceManager.ExtendedLocations.Models { diff --git a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationListResult.cs b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationListResult.cs index 0266384ec4ddf..a623f080d1aa1 100644 --- a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationListResult.cs +++ b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ExtendedLocations; namespace Azure.ResourceManager.ExtendedLocations.Models diff --git a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationPatch.cs b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationPatch.cs index e3fd5d98f7be3..47c3a90f184b6 100644 --- a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationPatch.cs +++ b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Generated/Models/CustomLocationPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ExtendedLocations; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.ExtendedLocations.Models diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Internal/ChangeTrackingList.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..976d484f303ea --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ContainerServiceFleet +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateGroupStatus.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateGroupStatus.cs index 2c175afba0dfd..ca58a8d3f4146 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateGroupStatus.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateGroupStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerServiceFleet; namespace Azure.ResourceManager.ContainerServiceFleet.Models { diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateRunStatus.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateRunStatus.cs index bfffb8ee20da3..8e69b6fc51fbb 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateRunStatus.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateRunStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerServiceFleet; namespace Azure.ResourceManager.ContainerServiceFleet.Models { diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateStage.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateStage.cs index d6e8c01418f9f..f5467eb482bcb 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateStage.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateStage.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerServiceFleet; namespace Azure.ResourceManager.ContainerServiceFleet.Models { diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateStageStatus.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateStageStatus.cs index b1a8ceb048ce3..51ce97c825649 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateStageStatus.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetUpdateStageStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerServiceFleet; namespace Azure.ResourceManager.ContainerServiceFleet.Models { diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/FleetCredentialResults.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/FleetCredentialResults.cs index 8126b156f9558..851131a33d14d 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/FleetCredentialResults.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/FleetCredentialResults.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerServiceFleet; namespace Azure.ResourceManager.ContainerServiceFleet.Models { diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelectionStatus.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelectionStatus.cs index 366f4865c0ae7..96bf6578e95c3 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelectionStatus.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelectionStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ContainerServiceFleet; namespace Azure.ResourceManager.ContainerServiceFleet.Models { diff --git a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Internal/ChangeTrackingList.cs b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..1091e2e5b6422 --- /dev/null +++ b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.FluidRelay +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayContainerList.cs b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayContainerList.cs index 3a229e1c3cc4a..977bdbf3ed466 100644 --- a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayContainerList.cs +++ b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayContainerList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.FluidRelay; namespace Azure.ResourceManager.FluidRelay.Models diff --git a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayEndpoints.cs b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayEndpoints.cs index 11e90b625785c..7c0b935ef9dbf 100644 --- a/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayEndpoints.cs +++ b/sdk/fluidrelay/Azure.ResourceManager.FluidRelay/src/Generated/Models/FluidRelayEndpoints.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.FluidRelay; namespace Azure.ResourceManager.FluidRelay.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Internal/ChangeTrackingList.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..f6d2528b99186 --- /dev/null +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.FormRecognizer +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResult.Serialization.cs index 4df268e213c3b..21ad6d2071bf1 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResult.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResult.cs index 3800db29c061c..4313576cbedd1 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResult.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResult.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzedDocument.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzedDocument.Serialization.cs index c1911c7b166ae..340d4d07d3c1e 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzedDocument.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzedDocument.Serialization.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.Text.Json; +using Azure.AI.FormRecognizer; using Azure.Core; namespace Azure.AI.FormRecognizer.DocumentAnalysis diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzedDocument.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzedDocument.cs index 540998ac945d9..3babb4c4865f6 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzedDocument.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzedDocument.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; +using Azure.AI.FormRecognizer; using Azure.Core; namespace Azure.AI.FormRecognizer.DocumentAnalysis diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyResult.Serialization.cs index 27e070cddc4c3..cac3b7e587e5c 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyResult.Serialization.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyResult.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyResult.cs index 95293cc45e250..0df5a505a7eb9 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyResult.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DataTableCell.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DataTableCell.cs index d1505a07baf80..66fbfbb5c6a8e 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DataTableCell.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DataTableCell.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentBarcode.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentBarcode.Serialization.cs index af099628eed9f..75612a1971ae2 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentBarcode.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentBarcode.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentBarcode.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentBarcode.cs index 4052768b507ab..5880ca30f7e15 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentBarcode.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentBarcode.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentField.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentField.Serialization.cs index 4fcff3d7d427d..0581cd287e8b1 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentField.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentField.Serialization.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using System.Text.Json; +using Azure.AI.FormRecognizer; using Azure.Core; namespace Azure.AI.FormRecognizer.DocumentAnalysis diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentField.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentField.cs index 94eabd0ebabf0..e10a5d8466bb6 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentField.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentField.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.AI.FormRecognizer; using Azure.Core; namespace Azure.AI.FormRecognizer.DocumentAnalysis diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFormula.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFormula.Serialization.cs index a5265b275d8cd..380f3a25f532a 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFormula.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFormula.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFormula.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFormula.cs index ac4a3ecd73129..e3c3432aca14f 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFormula.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFormula.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValueElement.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValueElement.Serialization.cs index 36383e5ddde89..0e26d2775ca17 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValueElement.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValueElement.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValueElement.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValueElement.cs index 6d209f816515c..451305d064c0b 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValueElement.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValueElement.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLine.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLine.Serialization.cs index cc4b0ba94e8f7..1944c1d042497 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLine.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLine.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLine.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLine.cs index 1523883ddd2b5..a4ad32a784ef7 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLine.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLine.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentPage.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentPage.Serialization.cs index 9c99941347baf..ce1d8d52a82df 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentPage.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentPage.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentPage.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentPage.cs index fdc01ec8d29e3..e0205d1568813 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentPage.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentPage.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentParagraph.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentParagraph.Serialization.cs index cede04db3944d..c4bddd5095e82 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentParagraph.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentParagraph.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentParagraph.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentParagraph.cs index f50b7e7295ce9..bdb271942f998 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentParagraph.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentParagraph.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSelectionMark.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSelectionMark.Serialization.cs index 3d6bbf1ed9653..390677a92deff 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSelectionMark.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSelectionMark.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSelectionMark.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSelectionMark.cs index 0844a6c9237bd..0415e23130b4c 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSelectionMark.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSelectionMark.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTable.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTable.Serialization.cs index a53f07136557d..cafc8b61d55e4 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTable.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTable.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTable.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTable.cs index ef32f2c277666..0922fa064dfec 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTable.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTable.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTableCell.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTableCell.Serialization.cs index 334886e045f03..445c68ea23d87 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTableCell.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTableCell.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTableCell.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTableCell.cs index 26e87b8db563d..57021ab0d6bca 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTableCell.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTableCell.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentWord.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentWord.Serialization.cs index f5c12f1ff24c3..2e39c24167c75 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentWord.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentWord.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentWord.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentWord.cs index 11c5b737a01a1..5d28b7b402291 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentWord.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentWord.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Error.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Error.Serialization.cs index de3dd69e87d88..b8fb1c12f669b 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Error.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Error.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Error.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Error.cs index 34993da6c0c75..c891bd0463bfe 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Error.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Error.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.DocumentAnalysis { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValue_internal.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValue_internal.Serialization.cs index cd7fdb572460a..c76761985d183 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValue_internal.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValue_internal.Serialization.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using System.Text.Json; +using Azure.AI.FormRecognizer; using Azure.Core; namespace Azure.AI.FormRecognizer.Models diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValue_internal.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValue_internal.cs index e2b584069ca6c..bd3aee5e1a5ba 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValue_internal.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValue_internal.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.AI.FormRecognizer; using Azure.Core; namespace Azure.AI.FormRecognizer.Models diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValueElement.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValueElement.Serialization.cs index cb87dda92e4f5..bf4a3aa29e5ae 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValueElement.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValueElement.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValueElement.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValueElement.cs index 390034932a080..76d913bdcdcea 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValueElement.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValueElement.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Model.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Model.Serialization.cs index eaa55d8d36d72..a3d33240b198c 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Model.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Model.Serialization.cs @@ -7,8 +7,8 @@ using System.Collections.Generic; using System.Text.Json; +using Azure.AI.FormRecognizer; using Azure.AI.FormRecognizer.Training; -using Azure.Core; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Model.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Model.cs index c4500e27cfda0..99af7634b967f 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Model.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Model.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; +using Azure.AI.FormRecognizer; using Azure.AI.FormRecognizer.Training; -using Azure.Core; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Models.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Models.Serialization.cs index bb45f59539e6d..fd2cabd0ddd96 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Models.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Models.Serialization.cs @@ -7,8 +7,8 @@ using System.Collections.Generic; using System.Text.Json; +using Azure.AI.FormRecognizer; using Azure.AI.FormRecognizer.Training; -using Azure.Core; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Models.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Models.cs index e9abff9c79ccf..a2d541232642c 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Models.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Models.cs @@ -6,8 +6,8 @@ #nullable disable using System.Collections.Generic; +using Azure.AI.FormRecognizer; using Azure.AI.FormRecognizer.Training; -using Azure.Core; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/PageResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/PageResult.Serialization.cs index 5e3468b2cc904..21425bac0f5f8 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/PageResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/PageResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/PageResult.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/PageResult.cs index dff1e369ef4b4..1dc023925468b 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/PageResult.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/PageResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.Serialization.cs index b78e67a145a25..de05a010100bb 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.cs index 197621f78ee53..ad4a392f8bd68 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainResult.Serialization.cs index 4342ac8233c28..2a0a9d4838174 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainResult.Serialization.cs @@ -7,8 +7,8 @@ using System.Collections.Generic; using System.Text.Json; +using Azure.AI.FormRecognizer; using Azure.AI.FormRecognizer.Training; -using Azure.Core; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainResult.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainResult.cs index fa6622800e662..fb60782b52acb 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainResult.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainResult.cs @@ -8,8 +8,8 @@ using System; using System.Collections.Generic; using System.Linq; +using Azure.AI.FormRecognizer; using Azure.AI.FormRecognizer.Training; -using Azure.Core; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/V2AnalyzeResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/V2AnalyzeResult.Serialization.cs index c9b18f651c972..acd16da12ded8 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/V2AnalyzeResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/V2AnalyzeResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/V2AnalyzeResult.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/V2AnalyzeResult.cs index 438f3b6329dbe..20f6d302aa142 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/V2AnalyzeResult.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/V2AnalyzeResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.Models { diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Internal/ChangeTrackingList.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..a6c4ef4093755 --- /dev/null +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.FrontDoor +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/CustomRuleList.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/CustomRuleList.cs index c14f4af51f8a5..b390cd61a730a 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/CustomRuleList.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/CustomRuleList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models { diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ExperimentList.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ExperimentList.cs index 937c369b8a549..5f31a0ba54698 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ExperimentList.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ExperimentList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorBackendPool.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorBackendPool.cs index 2369792bab3fb..9aeba29d36d45 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorBackendPool.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorBackendPool.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.FrontDoor; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.FrontDoor.Models diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorListResult.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorListResult.cs index a90e462503e38..147227aec479d 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorListResult.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorTimeSeriesInfo.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorTimeSeriesInfo.cs index 26655c8502560..a3c96c7b74743 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorTimeSeriesInfo.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorTimeSeriesInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.FrontDoor; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.FrontDoor.Models diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontendEndpointsListResult.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontendEndpointsListResult.cs index 8cf7a66c8597c..9512888f4bb9f 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontendEndpointsListResult.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontendEndpointsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/LatencyScorecard.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/LatencyScorecard.cs index a22693362e3cf..c0ba29006c978 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/LatencyScorecard.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/LatencyScorecard.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.FrontDoor; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.FrontDoor.Models diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleGroupDefinition.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleGroupDefinition.cs index d10ca991da44f..73e57c58c2e11 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleGroupDefinition.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleGroupDefinition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models { diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleGroupOverride.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleGroupOverride.cs index 5807f036f19d9..f4b8fff854869 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleGroupOverride.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleGroupOverride.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models { diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleOverride.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleOverride.cs index b54384b657d76..1c4d66e8f09eb 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleOverride.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleOverride.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models { diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSet.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSet.cs index 10f8e8c750b60..494fa7532f02b 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSet.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models { diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSetDefinition.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSetDefinition.cs index facf89ec08bc7..d5c3bfc2d2dc6 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSetDefinition.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSetDefinition.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.FrontDoor; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.FrontDoor.Models diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSetDefinitionList.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSetDefinitionList.cs index ab1fbce1a1c98..a9d61ee63c98a 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSetDefinitionList.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSetDefinitionList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models { diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSetList.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSetList.cs index f52a841b512b5..d6a7804b6e822 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSetList.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ManagedRuleSetList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models { diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/PreconfiguredEndpointList.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/PreconfiguredEndpointList.cs index 9449cb1819498..ab195adbaa027 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/PreconfiguredEndpointList.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/PreconfiguredEndpointList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models { diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ProfileList.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ProfileList.cs index 949c3cde96b4b..1594d2b324d1a 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ProfileList.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/ProfileList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RoutingRuleData.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RoutingRuleData.cs index a639a785f73f2..fb5d56bacf995 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RoutingRuleData.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RoutingRuleData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.FrontDoor; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.FrontDoor.Models diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineAction.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineAction.cs index 3a629629e3dbe..bd8fc5521385f 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineAction.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineAction.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models { diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineListResult.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineListResult.cs index bf684864de5c4..b532f0cff239a 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineListResult.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineMatchCondition.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineMatchCondition.cs index f141acf204aad..8744c6bc76de1 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineMatchCondition.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineMatchCondition.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models { diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineRule.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineRule.cs index 7d7de630efea8..0d449770a371f 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineRule.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RulesEngineRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models { diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/WebApplicationFirewallPolicyList.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/WebApplicationFirewallPolicyList.cs index 8a006f10de0c8..9411290bc4517 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/WebApplicationFirewallPolicyList.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/WebApplicationFirewallPolicyList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/WebApplicationRuleMatchCondition.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/WebApplicationRuleMatchCondition.cs index 37cc422315a72..acccce5a457a7 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/WebApplicationRuleMatchCondition.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/WebApplicationRuleMatchCondition.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.FrontDoor; namespace Azure.ResourceManager.FrontDoor.Models { diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Internal/ChangeTrackingList.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..80a92830f1ba0 --- /dev/null +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Grafana +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaAvailablePluginListResponse.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaAvailablePluginListResponse.cs index 9f55bd816748d..523d055188ae9 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaAvailablePluginListResponse.cs +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaAvailablePluginListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Grafana; namespace Azure.ResourceManager.Grafana.Models { diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaIntegrations.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaIntegrations.cs index 3a7608661f609..f78a51b9ee363 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaIntegrations.cs +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaIntegrations.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Grafana; namespace Azure.ResourceManager.Grafana.Models { diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaPrivateEndpointConnectionListResult.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaPrivateEndpointConnectionListResult.cs index bad35dc374442..7f095beceeac5 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaPrivateEndpointConnectionListResult.cs +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Grafana; namespace Azure.ResourceManager.Grafana.Models diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaPrivateLinkResourceListResult.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaPrivateLinkResourceListResult.cs index a79c483662f4a..f8e79b573440c 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaPrivateLinkResourceListResult.cs +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Grafana; namespace Azure.ResourceManager.Grafana.Models diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaListResponse.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaListResponse.cs index 9a2fe2f987444..2fed2a934855b 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaListResponse.cs +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Grafana; namespace Azure.ResourceManager.Grafana.Models diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedPrivateEndpointModelListResponse.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedPrivateEndpointModelListResponse.cs index d1cdd31d4e529..faaa915a8cc09 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedPrivateEndpointModelListResponse.cs +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedPrivateEndpointModelListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Grafana; namespace Azure.ResourceManager.Grafana.Models diff --git a/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/Internal/ChangeTrackingList.cs b/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..737113ea29a8e --- /dev/null +++ b/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.GraphServices +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/Models/GraphServicesAccountResourceList.cs b/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/Models/GraphServicesAccountResourceList.cs index 7a3c6f53cd0d4..0359626e938a8 100644 --- a/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/Models/GraphServicesAccountResourceList.cs +++ b/sdk/graphservices/Azure.ResourceManager.GraphServices/src/Generated/Models/GraphServicesAccountResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.GraphServices; namespace Azure.ResourceManager.GraphServices.Models diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Internal/ChangeTrackingList.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..439e7b25fb4cb --- /dev/null +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.GuestConfiguration +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/AssignmentReportResourceInfo.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/AssignmentReportResourceInfo.cs index 9bc162b9eab94..eae30cc971ea4 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/AssignmentReportResourceInfo.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/AssignmentReportResourceInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.GuestConfiguration; namespace Azure.ResourceManager.GuestConfiguration.Models { diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentList.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentList.cs index f3dbc00b8fd03..dc65a8f825f2b 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentList.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.GuestConfiguration; namespace Azure.ResourceManager.GuestConfiguration.Models diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentProperties.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentProperties.cs index 0c8272941a938..574fdfc6c845d 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentProperties.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.GuestConfiguration; namespace Azure.ResourceManager.GuestConfiguration.Models { diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentReportDetails.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentReportDetails.cs index 2332ad52ad02a..56782c9e7453d 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentReportDetails.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentReportDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.GuestConfiguration; namespace Azure.ResourceManager.GuestConfiguration.Models { diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentReportInfo.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentReportInfo.cs index 1cfbdedd8cffe..ef15d099c98ad 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentReportInfo.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentReportInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.GuestConfiguration; namespace Azure.ResourceManager.GuestConfiguration.Models { diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentReportList.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentReportList.cs index 531462eccb512..52c69bd090986 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentReportList.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationAssignmentReportList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.GuestConfiguration; namespace Azure.ResourceManager.GuestConfiguration.Models { diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationNavigation.cs b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationNavigation.cs index c7e72588f6f85..039a4f0c1df73 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationNavigation.cs +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Generated/Models/GuestConfigurationNavigation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.GuestConfiguration; namespace Azure.ResourceManager.GuestConfiguration.Models { diff --git a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Internal/ChangeTrackingList.cs b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..5a387e42ec419 --- /dev/null +++ b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.HardwareSecurityModules +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/CloudHsmClusterListResult.cs b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/CloudHsmClusterListResult.cs index a6802b35a80e2..1cb7134922fde 100644 --- a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/CloudHsmClusterListResult.cs +++ b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/CloudHsmClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HardwareSecurityModules; namespace Azure.ResourceManager.HardwareSecurityModules.Models diff --git a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/DedicatedHsmListResult.cs b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/DedicatedHsmListResult.cs index 9f60782f47f58..0966798384bdb 100644 --- a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/DedicatedHsmListResult.cs +++ b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/DedicatedHsmListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HardwareSecurityModules; namespace Azure.ResourceManager.HardwareSecurityModules.Models diff --git a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/EndpointDependency.cs b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/EndpointDependency.cs index ac02796a23fec..8dbf265aae922 100644 --- a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/EndpointDependency.cs +++ b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/EndpointDependency.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HardwareSecurityModules; namespace Azure.ResourceManager.HardwareSecurityModules.Models { diff --git a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/HardwareSecurityModulesPrivateEndpointConnectionListResult.cs b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/HardwareSecurityModulesPrivateEndpointConnectionListResult.cs index 3a3ffb3a09aac..3cde2627b45b1 100644 --- a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/HardwareSecurityModulesPrivateEndpointConnectionListResult.cs +++ b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/HardwareSecurityModulesPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HardwareSecurityModules; namespace Azure.ResourceManager.HardwareSecurityModules.Models diff --git a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/HardwareSecurityModulesPrivateLinkData.cs b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/HardwareSecurityModulesPrivateLinkData.cs index 4c848e81688be..5b2c58a3cc21f 100644 --- a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/HardwareSecurityModulesPrivateLinkData.cs +++ b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/HardwareSecurityModulesPrivateLinkData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HardwareSecurityModules; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.HardwareSecurityModules.Models diff --git a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/HardwareSecurityModulesPrivateLinkResourceListResult.cs b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/HardwareSecurityModulesPrivateLinkResourceListResult.cs index 441e07eb220d8..2461814e6fb1a 100644 --- a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/HardwareSecurityModulesPrivateLinkResourceListResult.cs +++ b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/HardwareSecurityModulesPrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HardwareSecurityModules; namespace Azure.ResourceManager.HardwareSecurityModules.Models { diff --git a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/NetworkProfile.cs b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/NetworkProfile.cs index 407e1fe6e2393..095f27f309715 100644 --- a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/NetworkProfile.cs +++ b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/NetworkProfile.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HardwareSecurityModules; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.HardwareSecurityModules.Models diff --git a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/OutboundEnvironmentEndpoint.cs b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/OutboundEnvironmentEndpoint.cs index 367a57dd9d506..631ec2b95a377 100644 --- a/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/OutboundEnvironmentEndpoint.cs +++ b/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/src/Generated/Models/OutboundEnvironmentEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HardwareSecurityModules; namespace Azure.ResourceManager.HardwareSecurityModules.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Internal/ChangeTrackingList.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..6c164efcb4346 --- /dev/null +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.HDInsight.Containers +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/AuthorizationProfile.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/AuthorizationProfile.cs index 1c16a9b1dced4..864ff25294c9e 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/AuthorizationProfile.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/AuthorizationProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight.Containers; namespace Azure.ResourceManager.HDInsight.Containers.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/CatalogOptions.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/CatalogOptions.cs index ef8065de6f1d6..a93109ac47471 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/CatalogOptions.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/CatalogOptions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight.Containers; namespace Azure.ResourceManager.HDInsight.Containers.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterConnectivityProfile.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterConnectivityProfile.cs index 2b9789a19b036..ffc747ae448c4 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterConnectivityProfile.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterConnectivityProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight.Containers; namespace Azure.ResourceManager.HDInsight.Containers.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterInstanceViewListResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterInstanceViewListResult.cs index b3996407a7c96..4fdbbb7e77718 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterInstanceViewListResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterInstanceViewListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight.Containers; namespace Azure.ResourceManager.HDInsight.Containers.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterPoolVersionListResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterPoolVersionListResult.cs index 75d01f8be5b72..0e5b54d1ed0c2 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterPoolVersionListResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterPoolVersionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight.Containers; namespace Azure.ResourceManager.HDInsight.Containers.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterProfile.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterProfile.cs index 071db8cc48213..cf9df4aa6d40f 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterProfile.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterProfile.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HDInsight.Containers; namespace Azure.ResourceManager.HDInsight.Containers.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterSecretsProfile.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterSecretsProfile.cs index d40288f8397ae..8f788ff063f86 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterSecretsProfile.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterSecretsProfile.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HDInsight.Containers; namespace Azure.ResourceManager.HDInsight.Containers.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterServiceConfigListResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterServiceConfigListResult.cs index b6944acf02775..e2819b439afdc 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterServiceConfigListResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/ClusterServiceConfigListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight.Containers; namespace Azure.ResourceManager.HDInsight.Containers.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterListResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterListResult.cs index 469fa3a679e9c..b4419f60a5fc5 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterListResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HDInsight.Containers; namespace Azure.ResourceManager.HDInsight.Containers.Models diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterPoolListData.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterPoolListData.cs index b68e5d71a2404..46a7f4b619f4c 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterPoolListData.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterPoolListData.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HDInsight.Containers; namespace Azure.ResourceManager.HDInsight.Containers.Models diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterVersion.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterVersion.cs index 4bce952b246ca..b2b8ec96ed3cb 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterVersion.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterVersion.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HDInsight.Containers; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.HDInsight.Containers.Models diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterVersionListResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterVersionListResult.cs index 582d6e8fa92ba..a41837710f156 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterVersionListResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/HDInsightClusterVersionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight.Containers; namespace Azure.ResourceManager.HDInsight.Containers.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/SparkUserPluginListResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/SparkUserPluginListResult.cs index 4c0519a68942d..e3fec8b2eb436 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/SparkUserPluginListResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/SparkUserPluginListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight.Containers; namespace Azure.ResourceManager.HDInsight.Containers.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/TrinoUserPluginListResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/TrinoUserPluginListResult.cs index 4fc4991e6257d..01e41c0f6b26f 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/TrinoUserPluginListResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/TrinoUserPluginListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight.Containers; namespace Azure.ResourceManager.HDInsight.Containers.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/UpdatableClusterProfile.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/UpdatableClusterProfile.cs index 334e179bd00d7..2ae36672a10fc 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/UpdatableClusterProfile.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight.Containers/src/Generated/Models/UpdatableClusterProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight.Containers; namespace Azure.ResourceManager.HDInsight.Containers.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Internal/ChangeTrackingList.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..34b2af525c56d --- /dev/null +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.HDInsight +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ApplicationListResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ApplicationListResult.cs index f503003f463ea..91af7a478946c 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ApplicationListResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ApplicationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ClusterListResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ClusterListResult.cs index 2239addbd2f9c..ee4ac96370df7 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ClusterListResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ComputeProfile.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ComputeProfile.cs index a5cb2722d5d25..7587a43a7c409 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ComputeProfile.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ComputeProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ExecuteScriptActionContent.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ExecuteScriptActionContent.cs index a393b76fd43d2..b3008583cfe81 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ExecuteScriptActionContent.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ExecuteScriptActionContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightApplicationHttpsEndpoint.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightApplicationHttpsEndpoint.cs index edc58f66f57cf..67bf303bd8f48 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightApplicationHttpsEndpoint.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightApplicationHttpsEndpoint.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightApplicationProperties.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightApplicationProperties.cs index 3ccfffebdff84..441c1ab0b3e54 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightApplicationProperties.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightApplicationProperties.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightAutoScaleRecurrence.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightAutoScaleRecurrence.cs index 69e3a61d65af9..7f4c504c132df 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightAutoScaleRecurrence.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightAutoScaleRecurrence.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightAutoScaleSchedule.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightAutoScaleSchedule.cs index 94460386af07c..c86514c7f07d6 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightAutoScaleSchedule.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightAutoScaleSchedule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightAzureMonitorSelectedConfigurations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightAzureMonitorSelectedConfigurations.cs index 2b75563547d81..a0ef178e6798e 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightAzureMonitorSelectedConfigurations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightAzureMonitorSelectedConfigurations.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightBillingResources.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightBillingResources.cs index d13ccc05d744d..7930a7a8b23dc 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightBillingResources.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightBillingResources.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightBillingSpecsListResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightBillingSpecsListResult.cs index 80c7c74e3fd20..fb60e786601f3 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightBillingSpecsListResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightBillingSpecsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightCapabilitiesResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightCapabilitiesResult.cs index ea93ae2b029f3..d5dbf0c133629 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightCapabilitiesResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightCapabilitiesResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterCreateOrUpdateContent.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterCreateOrUpdateContent.cs index 21a1e2ed629a8..0fc04febe8494 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterCreateOrUpdateContent.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterCreateOrUpdateContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HDInsight; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.HDInsight.Models diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterCreateOrUpdateProperties.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterCreateOrUpdateProperties.cs index e64f9df2d402e..51f0c3144a0fb 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterCreateOrUpdateProperties.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterCreateOrUpdateProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterCreationValidateResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterCreationValidateResult.cs index 37581ad7ee0b0..b761ce05e80c0 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterCreationValidateResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterCreationValidateResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterProperties.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterProperties.cs index b4563c99e8ea2..772cbebbec709 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterProperties.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterProperties.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterRole.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterRole.cs index ebf6c3d9928b1..d371ecbdf5840 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterRole.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterRole.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterValidationErrorInfo.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterValidationErrorInfo.cs index a0e6f84600dcb..40b0553a98ba7 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterValidationErrorInfo.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightClusterValidationErrorInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightPrivateEndpointConnectionListResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightPrivateEndpointConnectionListResult.cs index bf7f38cb2ca4f..9030757935fb6 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightPrivateEndpointConnectionListResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightPrivateLinkResourceListResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightPrivateLinkResourceListResult.cs index a0ec95fff8446..b7acbb0f88af9 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightPrivateLinkResourceListResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightSecurityProfile.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightSecurityProfile.cs index efc9fe9a0ae7b..5ccb6c5898361 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightSecurityProfile.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightSecurityProfile.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightVersionsCapability.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightVersionsCapability.cs index 87ee1d39c3346..e9101aa696951 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightVersionsCapability.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightVersionsCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightVmSizeCompatibilityFilterV2.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightVmSizeCompatibilityFilterV2.cs index 4303d0accc1f1..ba97f054d6e07 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightVmSizeCompatibilityFilterV2.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightVmSizeCompatibilityFilterV2.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/QuotaCapability.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/QuotaCapability.cs index 346bcec63e92c..57a8751199bff 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/QuotaCapability.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/QuotaCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/RegionsCapability.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/RegionsCapability.cs index bbc2449734832..d351b70ed75b2 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/RegionsCapability.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/RegionsCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/RuntimeScriptActionDetail.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/RuntimeScriptActionDetail.cs index 2adba7cd58029..610314a7a8f5d 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/RuntimeScriptActionDetail.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/RuntimeScriptActionDetail.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ScriptActionExecutionHistoryList.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ScriptActionExecutionHistoryList.cs index ea77df346c340..b423a2385f120 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ScriptActionExecutionHistoryList.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ScriptActionExecutionHistoryList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ScriptActionsList.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ScriptActionsList.cs index 8870e97d0d61b..101edeb091d39 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ScriptActionsList.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/ScriptActionsList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/SshProfile.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/SshProfile.cs index 8ab700125a81c..7a31cf17d3649 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/SshProfile.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/SshProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/StorageProfile.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/StorageProfile.cs index 336b7eee41ba0..b96f1721d0b5c 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/StorageProfile.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/StorageProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/UsagesListResult.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/UsagesListResult.cs index 12d317d063bf0..721da42550fd7 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/UsagesListResult.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/UsagesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HDInsight; namespace Azure.ResourceManager.HDInsight.Models { diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Internal/ChangeTrackingList.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..56ca5f3bea084 --- /dev/null +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.HealthBot +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Models/BotResponseList.cs b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Models/BotResponseList.cs index a9d0fff907139..cf4df90d6e938 100644 --- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Models/BotResponseList.cs +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Generated/Models/BotResponseList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HealthBot; namespace Azure.ResourceManager.HealthBot.Models diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Internal/ChangeTrackingList.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..09bd24adb9756 --- /dev/null +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.HealthcareApis +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceAuthenticationConfiguration.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceAuthenticationConfiguration.cs index be0230ae936ef..5e2f3d369ef9a 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceAuthenticationConfiguration.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceAuthenticationConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models { diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceCollection.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceCollection.cs index 2a94f9a5c69e8..15d8de82d3fac 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceCollection.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceCollection.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceCorsConfiguration.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceCorsConfiguration.cs index fd3dc62fdfbfd..22a0ca6affd7d 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceCorsConfiguration.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/DicomServiceCorsConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models { diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceAcrConfiguration.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceAcrConfiguration.cs index 595522415cd37..afdd2d64e3d03 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceAcrConfiguration.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceAcrConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models { diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceCollection.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceCollection.cs index bcb719cee090b..b86ba2a5818af 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceCollection.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceCollection.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceCorsConfiguration.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceCorsConfiguration.cs index 2d3efdc567c95..3785d9bfe214b 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceCorsConfiguration.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/FhirServiceCorsConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models { diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceAcrConfiguration.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceAcrConfiguration.cs index 7a28cd0adaa95..4929384fc37d4 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceAcrConfiguration.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceAcrConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models { diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceCorsConfiguration.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceCorsConfiguration.cs index e2417efcdbe59..99d9291992f6a 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceCorsConfiguration.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceCorsConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models { diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceProperties.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceProperties.cs index a0ad6ee3e3081..a91cd1d9bc5ac 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceProperties.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisServiceProperties.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisWorkspaceProperties.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisWorkspaceProperties.cs index 2ebf22660ba27..e9f60b3a963d9 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisWorkspaceProperties.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/HealthcareApisWorkspaceProperties.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/IotConnectorCollection.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/IotConnectorCollection.cs index 64d448653034b..0e9969a95acc5 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/IotConnectorCollection.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/IotConnectorCollection.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/IotFhirDestinationCollection.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/IotFhirDestinationCollection.cs index 747b9d6e8d610..5ba490dc986d2 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/IotFhirDestinationCollection.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/IotFhirDestinationCollection.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/PrivateEndpointConnectionListResultDescription.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/PrivateEndpointConnectionListResultDescription.cs index df6c804d21610..8d544a63141cd 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/PrivateEndpointConnectionListResultDescription.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/PrivateEndpointConnectionListResultDescription.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/PrivateLinkResourceListResultDescription.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/PrivateLinkResourceListResultDescription.cs index 38ee09c0de978..07311c34ec0de 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/PrivateLinkResourceListResultDescription.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/PrivateLinkResourceListResultDescription.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/ServicesDescriptionListResult.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/ServicesDescriptionListResult.cs index fd486ca1297ec..e8093f76e97ff 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/ServicesDescriptionListResult.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/ServicesDescriptionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models diff --git a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/WorkspaceList.cs b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/WorkspaceList.cs index db263d098b075..8b95dcabdcf86 100644 --- a/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/WorkspaceList.cs +++ b/sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/src/Generated/Models/WorkspaceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HealthcareApis; namespace Azure.ResourceManager.HealthcareApis.Models diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Internal/ChangeTrackingList.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..f8f65d93167b1 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Health.Insights.CancerProfiling +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeInference.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeInference.cs index 7045314171506..d03f5f5c94593 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeInference.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Health.Insights.CancerProfiling { diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeModelConfiguration.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeModelConfiguration.cs index c4d1af91eeee2..a377b846ef654 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeModelConfiguration.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/OncoPhenotypeModelConfiguration.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Health.Insights.CancerProfiling { diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientInfo.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientInfo.cs index 500e75e534429..c1226364c9518 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientInfo.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientInfo.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Health.Insights.CancerProfiling { diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientRecord.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientRecord.cs index 7a8efdb96b4a7..02c70fd89afb5 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientRecord.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/PatientRecord.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Health.Insights.CancerProfiling { diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialMetadata.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialMetadata.cs index 641890d67ca92..808d5e4e7ba4a 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialMetadata.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialMetadata.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.Health.Insights.ClinicalMatching { diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialRegistryFilter.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialRegistryFilter.cs index 4f44797e08187..ce1a7677f0932 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialRegistryFilter.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrialRegistryFilter.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Health.Insights.ClinicalMatching { diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrials.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrials.cs index fabf40cd016ee..230c8ece953fc 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrials.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/ClinicalTrials.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Health.Insights.ClinicalMatching { diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Internal/ChangeTrackingList.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..1c53dd9142ee5 --- /dev/null +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Health.Insights.ClinicalMatching +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientInfo.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientInfo.cs index 2710b5f3edaae..259b8919b2699 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientInfo.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientInfo.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Health.Insights.ClinicalMatching { diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientRecord.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientRecord.cs index aeaab3f2f2f5e..09e2064611573 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientRecord.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/PatientRecord.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Health.Insights.ClinicalMatching { diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInference.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInference.cs index f734cccebbaa8..5146b2c7a5d77 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherInference.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.Health.Insights.ClinicalMatching { diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherPatientResult.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherPatientResult.cs index 9b43c26098a79..2e2ecdc3fa7d4 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherPatientResult.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/TrialMatcherPatientResult.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.Health.Insights.ClinicalMatching { diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Internal/ChangeTrackingList.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..28bfca1b8fc71 --- /dev/null +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.HybridContainerService +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/AgentPoolListResult.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/AgentPoolListResult.cs index de0ad93562930..288e56a2bad9a 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/AgentPoolListResult.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/AgentPoolListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/AgentPoolProvisioningStatus.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/AgentPoolProvisioningStatus.cs index 169aa667cd79b..182ed47edd91a 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/AgentPoolProvisioningStatus.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/AgentPoolProvisioningStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models { diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceAgentPoolProfile.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceAgentPoolProfile.cs index 3706fc0635120..2b2f151d291c0 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceAgentPoolProfile.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceAgentPoolProfile.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models { diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceVirtualNetworkProperties.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceVirtualNetworkProperties.cs index 6ed0db80308e4..4c7b99598c15b 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceVirtualNetworkProperties.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceVirtualNetworkProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models { diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceVmSkuProperties.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceVmSkuProperties.cs index c7e44383b0754..299667aeeb879 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceVmSkuProperties.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/HybridContainerServiceVmSkuProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models { diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/KubernetesPatchVersions.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/KubernetesPatchVersions.cs index a0cd5e1f1b5a2..a920d114492d2 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/KubernetesPatchVersions.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/KubernetesPatchVersions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models { diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/KubernetesVersionProfileProperties.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/KubernetesVersionProfileProperties.cs index 743b8c084550b..8c2c0ed565b31 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/KubernetesVersionProfileProperties.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/KubernetesVersionProfileProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models { diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/LinuxSshConfiguration.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/LinuxSshConfiguration.cs index 69d1811e4cd7d..1312860a5ffdc 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/LinuxSshConfiguration.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/LinuxSshConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models { diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ListCredentialResponseProperties.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ListCredentialResponseProperties.cs index 88164c56a6d3c..2f35c262df74f 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ListCredentialResponseProperties.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ListCredentialResponseProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models { diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterInfraNetworkProfile.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterInfraNetworkProfile.cs index 1b71f83687ed4..1f1047258ec84 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterInfraNetworkProfile.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterInfraNetworkProfile.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models { diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterListResult.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterListResult.cs index 6587204ee7853..faf5d30b520de 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterListResult.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterPoolUpgradeProfile.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterPoolUpgradeProfile.cs index 3875ce1ca9f5d..f85ac380b68d1 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterPoolUpgradeProfile.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterPoolUpgradeProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models { diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterProperties.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterProperties.cs index bf41b6287a93a..71e5ff2ff98a9 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterProperties.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models { diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterStatus.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterStatus.cs index f16a36c7dc6c2..93ed289532645 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterStatus.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/ProvisionedClusterStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models { diff --git a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/VirtualNetworksListResult.cs b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/VirtualNetworksListResult.cs index caca895e2c0b5..b0a4a95b88d0b 100644 --- a/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/VirtualNetworksListResult.cs +++ b/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/VirtualNetworksListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridContainerService; namespace Azure.ResourceManager.HybridContainerService.Models diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Internal/ChangeTrackingList.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..2bdea04b155af --- /dev/null +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.HybridCompute +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/AgentConfiguration.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/AgentConfiguration.cs index 2c9f100daaee3..e2ac2b56df93e 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/AgentConfiguration.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/AgentConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models { diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/ExtensionValueListResult.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/ExtensionValueListResult.cs index c66be25cb37dd..b985bf4b67809 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/ExtensionValueListResult.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/ExtensionValueListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeLinuxParameters.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeLinuxParameters.cs index 9b39879cd86db..ed6c9a2d40380 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeLinuxParameters.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeLinuxParameters.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models { diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeNetworkInterface.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeNetworkInterface.cs index b5aa01a27219b..5f210740abc2e 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeNetworkInterface.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeNetworkInterface.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models { diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeNetworkProfile.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeNetworkProfile.cs index c6ad4ded8402e..9b62cc6649771 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeNetworkProfile.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeNetworkProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models { diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateEndpointConnectionListResult.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateEndpointConnectionListResult.cs index 7f9a3ef64689c..e2654a0971d10 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateEndpointConnectionListResult.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateEndpointConnectionProperties.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateEndpointConnectionProperties.cs index 832ce88beea15..510df18e2c7ad 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateEndpointConnectionProperties.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateEndpointConnectionProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HybridCompute; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.HybridCompute.Models diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkResourceListResult.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkResourceListResult.cs index 59004efbc8f45..a060a70fc0cd4 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkResourceListResult.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkResourceProperties.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkResourceProperties.cs index 5bc5d811817f9..e063db69c5206 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkResourceProperties.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkResourceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models { diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkScopeProperties.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkScopeProperties.cs index 432f030947645..cd0c016006fb9 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkScopeProperties.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputePrivateLinkScopeProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models { diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeWindowsParameters.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeWindowsParameters.cs index fb11182aa2403..4030ca524a565 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeWindowsParameters.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeWindowsParameters.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models { diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/LicenseProfileMachineInstanceView.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/LicenseProfileMachineInstanceView.cs index 7e19b7ea341a9..cef34e7b3b8f3 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/LicenseProfileMachineInstanceView.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/LicenseProfileMachineInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models { diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/LicenseProfileStorageModelEsuProperties.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/LicenseProfileStorageModelEsuProperties.cs index 538400c161252..f0098972228a1 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/LicenseProfileStorageModelEsuProperties.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/LicenseProfileStorageModelEsuProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models { diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineExtensionsListResult.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineExtensionsListResult.cs index b0e8240662a4f..c5bd2c35b7262 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineExtensionsListResult.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineExtensionsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandInstanceView.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandInstanceView.cs index 956ccfa8e7a9b..ce1e8030ea487 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandInstanceView.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandInstanceView.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models { diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandsListResult.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandsListResult.cs index 3f4098bf3fad0..07dd0da64a4ff 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandsListResult.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models diff --git a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/PrivateLinkScopeValidationDetails.cs b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/PrivateLinkScopeValidationDetails.cs index b02fe72283bca..7ffa7f3c16ff7 100644 --- a/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/PrivateLinkScopeValidationDetails.cs +++ b/sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/PrivateLinkScopeValidationDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HybridCompute; namespace Azure.ResourceManager.HybridCompute.Models { diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Internal/ChangeTrackingList.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..0eef717462af0 --- /dev/null +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.HybridConnectivity +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointsList.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointsList.cs index e3cb33507ee13..9b6fe5981f111 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointsList.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/EndpointsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridConnectivity; namespace Azure.ResourceManager.HybridConnectivity.Models diff --git a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Internal/ChangeTrackingList.cs b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..7e1e02a6d26ac --- /dev/null +++ b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Kubernetes +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/ConnectedClusterList.cs b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/ConnectedClusterList.cs index cd6a0410fe0f9..df6e659e7b877 100644 --- a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/ConnectedClusterList.cs +++ b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/ConnectedClusterList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Kubernetes; namespace Azure.ResourceManager.Kubernetes.Models diff --git a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/CredentialResults.cs b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/CredentialResults.cs index fa6b78f527991..b48c75ad8e124 100644 --- a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/CredentialResults.cs +++ b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/CredentialResults.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Kubernetes; namespace Azure.ResourceManager.Kubernetes.Models { diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Internal/ChangeTrackingList.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..d0252da39459c --- /dev/null +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.HybridNetwork +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactManifestListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactManifestListResult.cs index 1f27f697fbc81..97d109704b73c 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactManifestListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactManifestListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactManifestPropertiesFormat.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactManifestPropertiesFormat.cs index 465984b135973..c2982b2bc2890 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactManifestPropertiesFormat.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactManifestPropertiesFormat.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models { diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactStoreListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactStoreListResult.cs index c18ed9b73eba7..fe0bbb5118701 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactStoreListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ArtifactStoreListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureArcKubernetesNetworkFunctionTemplate.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureArcKubernetesNetworkFunctionTemplate.cs index 53cdae4881ea6..39e1318970864 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureArcKubernetesNetworkFunctionTemplate.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureArcKubernetesNetworkFunctionTemplate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models { diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureContainerRegistryScopedTokenCredential.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureContainerRegistryScopedTokenCredential.cs index dd82beeab5a4f..4b365f9235082 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureContainerRegistryScopedTokenCredential.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureContainerRegistryScopedTokenCredential.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models { diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureCoreNetworkFunctionTemplate.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureCoreNetworkFunctionTemplate.cs index 707a4370b9ddf..41c8da92db0e3 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureCoreNetworkFunctionTemplate.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureCoreNetworkFunctionTemplate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models { diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureOperatorNexusNetworkFunctionTemplate.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureOperatorNexusNetworkFunctionTemplate.cs index 7264ab8194208..2b328c12ebe86 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureOperatorNexusNetworkFunctionTemplate.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureOperatorNexusNetworkFunctionTemplate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models { diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureStorageAccountCredential.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureStorageAccountCredential.cs index e7ae7fbf0c08e..1323e6778bdc5 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureStorageAccountCredential.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/AzureStorageAccountCredential.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models { diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ComponentKubernetesResources.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ComponentKubernetesResources.cs index 5e813f9a569c1..eab9deb0d8fe3 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ComponentKubernetesResources.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ComponentKubernetesResources.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models { diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ComponentListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ComponentListResult.cs index b3b0349cba785..983b99b98e331 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ComponentListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ComponentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ConfigurationGroupSchemaListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ConfigurationGroupSchemaListResult.cs index 37eb01f1aa6c4..9cff0f5f354a7 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ConfigurationGroupSchemaListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ConfigurationGroupSchemaListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ConfigurationGroupValueListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ConfigurationGroupValueListResult.cs index ccb20142884d6..138b8e8209375 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ConfigurationGroupValueListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ConfigurationGroupValueListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/DependsOnProfile.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/DependsOnProfile.cs index 25e995ba81382..1cdcd3c4d5d1e 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/DependsOnProfile.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/DependsOnProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models { diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/HelmArtifactProfile.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/HelmArtifactProfile.cs index f6e337062e5f8..a9f01f2da3ce3 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/HelmArtifactProfile.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/HelmArtifactProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models { diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/KubernetesPod.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/KubernetesPod.cs index 316cc8199635d..de63a90611268 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/KubernetesPod.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/KubernetesPod.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models { diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionDefinitionGroupListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionDefinitionGroupListResult.cs index d5df53068eaff..b79949825fd06 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionDefinitionGroupListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionDefinitionGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionDefinitionVersionListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionDefinitionVersionListResult.cs index 2f543cad0f542..682fa0af4de60 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionDefinitionVersionListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionDefinitionVersionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionListResult.cs index 9bfe4e56e8577..1412ff0711c1b 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionPropertiesFormat.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionPropertiesFormat.cs index 7f11c176c9a94..bb9a537f550cf 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionPropertiesFormat.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkFunctionPropertiesFormat.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models { diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignGroupListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignGroupListResult.cs index 72e7913fce0ff..443c6830a8491 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignGroupListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignVersionListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignVersionListResult.cs index 6b28fc06da662..016990626359c 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignVersionListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignVersionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignVersionPropertiesFormat.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignVersionPropertiesFormat.cs index d43c995eb9e0c..961da11753f9e 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignVersionPropertiesFormat.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/NetworkServiceDesignVersionPropertiesFormat.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.HybridNetwork; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ProxyArtifactOverviewListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ProxyArtifactOverviewListResult.cs index 0493d7adedd8e..ee7829df40bbc 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ProxyArtifactOverviewListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ProxyArtifactOverviewListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models { diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ProxyArtifactVersionsOverviewListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ProxyArtifactVersionsOverviewListResult.cs index f17919071c7e0..7e30f088c271f 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ProxyArtifactVersionsOverviewListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/ProxyArtifactVersionsOverviewListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models { diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/PublisherListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/PublisherListResult.cs index 0ab6cac348da6..0f1f8dc56b6b9 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/PublisherListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/PublisherListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SiteListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SiteListResult.cs index b69ba8ec8a08d..e7050c901ad25 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SiteListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SiteListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SiteNetworkServiceListResult.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SiteNetworkServiceListResult.cs index fd564ef806065..3fe01c43093a5 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SiteNetworkServiceListResult.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SiteNetworkServiceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.HybridNetwork; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SitePropertiesFormat.cs b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SitePropertiesFormat.cs index 61a3c0fe976da..dfe0527785d6e 100644 --- a/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SitePropertiesFormat.cs +++ b/sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/src/Generated/Models/SitePropertiesFormat.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.HybridNetwork; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.HybridNetwork.Models diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Internal/ChangeTrackingList.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..1094b0b2f87fa --- /dev/null +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.IoT.Hub.Service +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/BulkRegistryOperationResponse.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/BulkRegistryOperationResponse.Serialization.cs index c2fa3aaee8907..f7365054ad802 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/BulkRegistryOperationResponse.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/BulkRegistryOperationResponse.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.IoT.Hub.Service; namespace Azure.IoT.Hub.Service.Models { diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/BulkRegistryOperationResponse.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/BulkRegistryOperationResponse.cs index ce2bbf9b100a1..1ba4cf9e4f999 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/BulkRegistryOperationResponse.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/BulkRegistryOperationResponse.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.IoT.Hub.Service; namespace Azure.IoT.Hub.Service.Models { diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QueryResult.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QueryResult.Serialization.cs index 6901c3ebbfe84..32c9adef5235f 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QueryResult.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QueryResult.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.IoT.Hub.Service; namespace Azure.IoT.Hub.Service.Models { diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QueryResult.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QueryResult.cs index 04befc6dd09ad..7e86a60ba8f55 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QueryResult.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QueryResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.IoT.Hub.Service; namespace Azure.IoT.Hub.Service.Models { diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Internal/ChangeTrackingList.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..16056a5143e39 --- /dev/null +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.IotFirmwareDefense +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/BinaryHardeningListResult.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/BinaryHardeningListResult.cs index df622e46cbaa3..c9e8480373cf3 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/BinaryHardeningListResult.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/BinaryHardeningListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotFirmwareDefense; namespace Azure.ResourceManager.IotFirmwareDefense.Models { diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoCertificateListResult.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoCertificateListResult.cs index bf1d2d5cc5873..685be05c232b7 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoCertificateListResult.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoCertificateListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotFirmwareDefense; namespace Azure.ResourceManager.IotFirmwareDefense.Models { diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoCertificateResult.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoCertificateResult.cs index c1ebadbb39e8e..369e23411a378 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoCertificateResult.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoCertificateResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.IotFirmwareDefense; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.IotFirmwareDefense.Models diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoKeyListResult.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoKeyListResult.cs index d430c27e501ed..c83776a5eeff9 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoKeyListResult.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoKeyListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotFirmwareDefense; namespace Azure.ResourceManager.IotFirmwareDefense.Models { diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoKeyResult.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoKeyResult.cs index 5cc2a696d5952..8a8af546c4ad0 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoKeyResult.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CryptoKeyResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.IotFirmwareDefense; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.IotFirmwareDefense.Models diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CveListResult.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CveListResult.cs index e30c00ddc037c..53d5868588673 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CveListResult.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CveListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotFirmwareDefense; namespace Azure.ResourceManager.IotFirmwareDefense.Models { diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CveResult.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CveResult.cs index c4aa4ee3b7ba6..3ba0192a29697 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CveResult.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/CveResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.IotFirmwareDefense; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.IotFirmwareDefense.Models diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/FirmwareList.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/FirmwareList.cs index 37f362042e1e1..55d43c78caab8 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/FirmwareList.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/FirmwareList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.IotFirmwareDefense; namespace Azure.ResourceManager.IotFirmwareDefense.Models diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/IotFirmwarePatch.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/IotFirmwarePatch.cs index 91b0ef540538f..e7c722162e2db 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/IotFirmwarePatch.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/IotFirmwarePatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotFirmwareDefense; namespace Azure.ResourceManager.IotFirmwareDefense.Models { diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/PasswordHashListResult.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/PasswordHashListResult.cs index 93b9c89cb4384..75651438c0b30 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/PasswordHashListResult.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/PasswordHashListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotFirmwareDefense; namespace Azure.ResourceManager.IotFirmwareDefense.Models { diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/SbomComponentListResult.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/SbomComponentListResult.cs index 43fcfc8112561..ffdfaf8c4fc40 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/SbomComponentListResult.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/SbomComponentListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotFirmwareDefense; namespace Azure.ResourceManager.IotFirmwareDefense.Models { diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/SbomComponentResult.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/SbomComponentResult.cs index 81d8edb18ae83..d1077a1f6fe0b 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/SbomComponentResult.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/SbomComponentResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.IotFirmwareDefense; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.IotFirmwareDefense.Models diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/SummaryListResult.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/SummaryListResult.cs index 2fd873c4a87bf..2a017b8b09e4d 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/SummaryListResult.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/SummaryListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.IotFirmwareDefense; namespace Azure.ResourceManager.IotFirmwareDefense.Models diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/WorkspaceList.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/WorkspaceList.cs index a60a50fb4c160..549156a7a541a 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/WorkspaceList.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/src/Generated/Models/WorkspaceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.IotFirmwareDefense; namespace Azure.ResourceManager.IotFirmwareDefense.Models diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Internal/ChangeTrackingList.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..37e6ea44a18c6 --- /dev/null +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.IotCentral +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppListResult.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppListResult.cs index 23d2d2dd922be..218c774e6663d 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppListResult.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.IotCentral; namespace Azure.ResourceManager.IotCentral.Models diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppTemplate.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppTemplate.cs index f2f7e1d3833ad..f839a1a54cc26 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppTemplate.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppTemplate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotCentral; namespace Azure.ResourceManager.IotCentral.Models { diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppTemplatesResult.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppTemplatesResult.cs index 89b0d0cb6a67b..26c18ca0e003b 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppTemplatesResult.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralAppTemplatesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotCentral; namespace Azure.ResourceManager.IotCentral.Models { diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSets.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSets.cs index f52eb3a95df97..f2195e484c7f5 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSets.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSets.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotCentral; namespace Azure.ResourceManager.IotCentral.Models { diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralPrivateEndpointConnectionListResult.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralPrivateEndpointConnectionListResult.cs index a8fee34d1eeea..8d60ba863160f 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralPrivateEndpointConnectionListResult.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.IotCentral; namespace Azure.ResourceManager.IotCentral.Models diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralPrivateLinkResourceListResult.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralPrivateLinkResourceListResult.cs index c3a892f579526..71f7064eedee7 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralPrivateLinkResourceListResult.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.IotCentral; namespace Azure.ResourceManager.IotCentral.Models diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Internal/ChangeTrackingList.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..6868eafa35b83 --- /dev/null +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.IotHub +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/EventHubCompatibleEndpointProperties.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/EventHubCompatibleEndpointProperties.cs index dcc536416706b..28ba2e8255cde 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/EventHubCompatibleEndpointProperties.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/EventHubCompatibleEndpointProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models { diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/EventHubConsumerGroupsListResult.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/EventHubConsumerGroupsListResult.cs index 3494168057c93..dcdf0aec9d833 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/EventHubConsumerGroupsListResult.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/EventHubConsumerGroupsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubCertificateListDescription.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubCertificateListDescription.cs index 2622e773d7a11..24ba3f3c71b0d 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubCertificateListDescription.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubCertificateListDescription.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubDescriptionListResult.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubDescriptionListResult.cs index ef2126dc888ba..153652a6480cd 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubDescriptionListResult.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubDescriptionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubEndpointHealthInfoListResult.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubEndpointHealthInfoListResult.cs index 025b3adfc2987..65b5753bb4722 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubEndpointHealthInfoListResult.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubEndpointHealthInfoListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models { diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubJobInfoListResult.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubJobInfoListResult.cs index de27a4937f964..e846c17d2d3aa 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubJobInfoListResult.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubJobInfoListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models { diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateEndpointConnectionsList.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateEndpointConnectionsList.cs index 1f264da1d1190..181340a2f1404 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateEndpointConnectionsList.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateEndpointConnectionsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateEndpointGroupInformationProperties.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateEndpointGroupInformationProperties.cs index 1e2155bec5a5a..fc38eb452ea62 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateEndpointGroupInformationProperties.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateEndpointGroupInformationProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models { diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateLinkResources.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateLinkResources.cs index 1c08a72538b77..1863dd9aee855 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateLinkResources.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubPrivateLinkResources.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubQuotaMetricInfoListResult.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubQuotaMetricInfoListResult.cs index f1a1cd00d0c6d..4568e0f71a2a8 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubQuotaMetricInfoListResult.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubQuotaMetricInfoListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models { diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubRoutingProperties.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubRoutingProperties.cs index 6a84f9651bb29..d6a415549b3d5 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubRoutingProperties.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubRoutingProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models { diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubSkuDescriptionListResult.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubSkuDescriptionListResult.cs index 0f16f05b8d1e1..9265dce8cb0f2 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubSkuDescriptionListResult.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubSkuDescriptionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models { diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubTestAllRoutesResult.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubTestAllRoutesResult.cs index 1b7e3edffdd17..83628f5912990 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubTestAllRoutesResult.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubTestAllRoutesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models { diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubTestRouteResultDetails.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubTestRouteResultDetails.cs index baa51d8d13fbb..3bf6b37618893 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubTestRouteResultDetails.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubTestRouteResultDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models { diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubUserSubscriptionQuotaListResult.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubUserSubscriptionQuotaListResult.cs index 59a96cb691eb6..c23385e590b33 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubUserSubscriptionQuotaListResult.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubUserSubscriptionQuotaListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models { diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/RoutingEndpoints.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/RoutingEndpoints.cs index efd7d46c6621d..0d798cfb31a99 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/RoutingEndpoints.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/RoutingEndpoints.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models { diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/SharedAccessSignatureAuthorizationRuleListResult.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/SharedAccessSignatureAuthorizationRuleListResult.cs index 792365efff1c6..cf6b89e2bb457 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/SharedAccessSignatureAuthorizationRuleListResult.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/SharedAccessSignatureAuthorizationRuleListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.IotHub; namespace Azure.ResourceManager.IotHub.Models { diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Internal/ChangeTrackingList.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..d4dc6f4c9f4dc --- /dev/null +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.KeyVault +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedManagedHsmListResult.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedManagedHsmListResult.cs index 50bc162c68cf3..c5de686bdbe72 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedManagedHsmListResult.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedManagedHsmListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedVaultListResult.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedVaultListResult.cs index d74c323eb4753..ab2db72db6f7f 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedVaultListResult.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/DeletedVaultListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/IdentityAccessPermissions.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/IdentityAccessPermissions.cs index 5c93bed9bb54f..696a5c46e2d57 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/IdentityAccessPermissions.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/IdentityAccessPermissions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models { diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNetworkRuleSet.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNetworkRuleSet.cs index db8be2e396eca..17b9403b9afc8 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNetworkRuleSet.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultNetworkRuleSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models { diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatchProperties.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatchProperties.cs index 799955fa29fa1..abdffeadd77da 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatchProperties.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPatchProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models { diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionListResult.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionListResult.cs index f1529713fd820..dfe3b93f6c6e4 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionListResult.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceData.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceData.cs index 52b970e8e76c9..edd06ddc453b6 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceData.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.KeyVault; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.KeyVault.Models diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceListResult.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceListResult.cs index c4dbed2a81c55..87b56805fce08 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceListResult.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultPrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models { diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultProperties.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultProperties.cs index e89541b510fcf..24ba90be71751 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultProperties.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/KeyVaultProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models { diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmListResult.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmListResult.cs index c92de3a35a0cf..9357af63554b0 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmListResult.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNetworkRuleSet.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNetworkRuleSet.cs index 872a64985e3db..b6f24285b0b49 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNetworkRuleSet.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmNetworkRuleSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models { diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionsListResult.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionsListResult.cs index f62957a9f1ba9..0dd9de95e2220 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionsListResult.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateEndpointConnectionsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceData.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceData.cs index 1dfc07b9aa212..4a7e70e6600a3 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceData.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.KeyVault; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.KeyVault.Models diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceListResult.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceListResult.cs index 3e0822d7ee753..1cb25913383e4 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceListResult.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmPrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models { diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmProperties.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmProperties.cs index efa13b10a88a7..67f4f5f0bbf9f 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmProperties.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models { diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmRegionsListResult.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmRegionsListResult.cs index 1e383846efd36..ec1fc33bb317c 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmRegionsListResult.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/ManagedHsmRegionsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models { diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretListResult.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretListResult.cs index 20b7cfb4f489c..925fb15dffbf7 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretListResult.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/SecretListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/VaultListResult.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/VaultListResult.cs index 908bcc31b1818..708104390387c 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/VaultListResult.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Models/VaultListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.KeyVault; namespace Azure.ResourceManager.KeyVault.Models diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Internal/ChangeTrackingList.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..e5095ab7d72c0 --- /dev/null +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Security.KeyVault.Administration +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/GetSettingsResult.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/GetSettingsResult.Serialization.cs index 5de69b681ee1c..df91e9f96f5ea 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/GetSettingsResult.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/GetSettingsResult.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Security.KeyVault.Administration { diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/GetSettingsResult.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/GetSettingsResult.cs index 8b6feb40fc10a..df489fafd9f27 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/GetSettingsResult.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/GetSettingsResult.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Security.KeyVault.Administration { diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultPermission.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultPermission.cs index c2c239fb7bd7f..0b5a34b5c11e6 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultPermission.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultPermission.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Security.KeyVault.Administration { diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleDefinition.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleDefinition.cs index 0a86fbfb58167..d1e59ad74ce9a 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleDefinition.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleDefinition.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Security.KeyVault.Administration { diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentListResult.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentListResult.Serialization.cs index f8f13e4a4ea60..cccce2b72f195 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentListResult.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentListResult.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; using Azure.Security.KeyVault.Administration; namespace Azure.Security.KeyVault.Administration.Models diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentListResult.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentListResult.cs index fed7d981a4bc5..03ce0e556ea3f 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentListResult.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentListResult.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; using Azure.Security.KeyVault.Administration; namespace Azure.Security.KeyVault.Administration.Models diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionListResult.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionListResult.Serialization.cs index 09527d37019a1..6f1095a839717 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionListResult.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionListResult.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; using Azure.Security.KeyVault.Administration; namespace Azure.Security.KeyVault.Administration.Models diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionListResult.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionListResult.cs index 89d18bd2c5227..8f52cfe0ffd5f 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionListResult.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionListResult.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; using Azure.Security.KeyVault.Administration; namespace Azure.Security.KeyVault.Administration.Models diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionProperties.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionProperties.cs index f48a51225c57e..1cb0b78de965d 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionProperties.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionProperties.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; using Azure.Security.KeyVault.Administration; namespace Azure.Security.KeyVault.Administration.Models diff --git a/sdk/keyvault/samples/sharelink/Generated/Internal/ChangeTrackingList.cs b/sdk/keyvault/samples/sharelink/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..41f92037f8236 --- /dev/null +++ b/sdk/keyvault/samples/sharelink/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Security.KeyVault.Storage +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionListResult.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionListResult.Serialization.cs index 4604f08d4dbc4..03458a2351e0e 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionListResult.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionListResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Security.KeyVault.Storage; namespace Azure.Security.KeyVault.Storage.Models { diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionListResult.cs b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionListResult.cs index 543b2a4b78f8d..85ed3e7174c4b 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionListResult.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionListResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Security.KeyVault.Storage; namespace Azure.Security.KeyVault.Storage.Models { diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageListResult.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageListResult.Serialization.cs index 2fda168b88c28..296e112518b1a 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageListResult.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageListResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Security.KeyVault.Storage; namespace Azure.Security.KeyVault.Storage.Models { diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageListResult.cs b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageListResult.cs index a79d620644e69..bc4abde40b03c 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageListResult.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageListResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Security.KeyVault.Storage; namespace Azure.Security.KeyVault.Storage.Models { diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionListResult.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionListResult.Serialization.cs index f89956a39c466..c6df70282ab98 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionListResult.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionListResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Security.KeyVault.Storage; namespace Azure.Security.KeyVault.Storage.Models { diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionListResult.cs b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionListResult.cs index 26ed30d4bd338..8f1968eb80d74 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionListResult.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionListResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Security.KeyVault.Storage; namespace Azure.Security.KeyVault.Storage.Models { diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/StorageListResult.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/StorageListResult.Serialization.cs index 4a2dd79ba265f..f4d7a9435c08c 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/StorageListResult.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/StorageListResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Security.KeyVault.Storage; namespace Azure.Security.KeyVault.Storage.Models { diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/StorageListResult.cs b/sdk/keyvault/samples/sharelink/Generated/Models/StorageListResult.cs index 46ef4543c2385..bae93d8471f3d 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/StorageListResult.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/StorageListResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Security.KeyVault.Storage; namespace Azure.Security.KeyVault.Storage.Models { diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Internal/ChangeTrackingList.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..e63a48f65899d --- /dev/null +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.KubernetesConfiguration +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/ExtensionsList.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/ExtensionsList.cs index e1c53b038fb0a..2a0eee6df4250 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/ExtensionsList.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/ExtensionsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.KubernetesConfiguration; namespace Azure.ResourceManager.KubernetesConfiguration.Models diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/FluxConfigurationsList.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/FluxConfigurationsList.cs index 6c2cd6f42978d..66fa05418780a 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/FluxConfigurationsList.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/FluxConfigurationsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.KubernetesConfiguration; namespace Azure.ResourceManager.KubernetesConfiguration.Models diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KubernetesObjectStatus.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KubernetesObjectStatus.cs index 2ea663f633cff..392abd67fe28a 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KubernetesObjectStatus.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KubernetesObjectStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.KubernetesConfiguration; namespace Azure.ResourceManager.KubernetesConfiguration.Models { diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/Kustomization.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/Kustomization.cs index 291512b228aa1..1c029ff5e1c04 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/Kustomization.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/Kustomization.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.KubernetesConfiguration; namespace Azure.ResourceManager.KubernetesConfiguration.Models { diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KustomizationUpdateContent.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KustomizationUpdateContent.cs index fbfd88c424abb..eea8088789f06 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KustomizationUpdateContent.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/KustomizationUpdateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.KubernetesConfiguration; namespace Azure.ResourceManager.KubernetesConfiguration.Models { diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/SourceControlConfigurationList.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/SourceControlConfigurationList.cs index f0902ee3dc05c..7feeb57dda5f4 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/SourceControlConfigurationList.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/src/Generated/Models/SourceControlConfigurationList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.KubernetesConfiguration; namespace Azure.ResourceManager.KubernetesConfiguration.Models diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Internal/ChangeTrackingList.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..5b71ed58f2127 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Kusto +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/AttachedDatabaseConfigurationListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/AttachedDatabaseConfigurationListResult.cs index e94b522a6b02b..ac9274412a42a 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/AttachedDatabaseConfigurationListResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/AttachedDatabaseConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ClusterListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ClusterListResult.cs index 61f5bc7ea5028..23d857bec394a 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ClusterListResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ClusterPrincipalAssignmentListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ClusterPrincipalAssignmentListResult.cs index 6d51a36a99932..d5a71bacc5209 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ClusterPrincipalAssignmentListResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ClusterPrincipalAssignmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DataConnectionListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DataConnectionListResult.cs index adfdad8d93843..de9cd4468b03d 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DataConnectionListResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DataConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DataConnectionValidationResults.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DataConnectionValidationResults.cs index daf7513328e91..a7f3a10949e2a 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DataConnectionValidationResults.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DataConnectionValidationResults.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models { diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseListResult.cs index 34a60df9fbb36..11fc7238273d7 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseListResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabasePrincipalAssignmentListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabasePrincipalAssignmentListResult.cs index 8f4af536fb5d0..d20b14c51dc88 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabasePrincipalAssignmentListResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabasePrincipalAssignmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabasePrincipalList.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabasePrincipalList.cs index d6ab9df45503d..72b3b31f68775 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabasePrincipalList.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabasePrincipalList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models { diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabasePrincipalListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabasePrincipalListResult.cs index 76e32d78626f6..36106a95948cf 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabasePrincipalListResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabasePrincipalListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models { diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DiagnoseVirtualNetworkResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DiagnoseVirtualNetworkResult.cs index 17ca1d76388d5..084e29a2d8ee4 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DiagnoseVirtualNetworkResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DiagnoseVirtualNetworkResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models { diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/EndpointDependency.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/EndpointDependency.cs index 42e3658daa4c4..5bfbbad4435a2 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/EndpointDependency.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/EndpointDependency.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models { diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseListResult.cs index f7a87321ab786..5db2a060d1b61 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseListResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/FollowerDatabaseListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models { diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDatabaseTableLevelSharingProperties.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDatabaseTableLevelSharingProperties.cs index f76ae94a97dca..80439202f7648 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDatabaseTableLevelSharingProperties.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoDatabaseTableLevelSharingProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models { diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtensionList.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtensionList.cs index 103bd9bd11fd3..51c2cc898cd30 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtensionList.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtensionList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models { diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoPrivateEndpointConnectionListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoPrivateEndpointConnectionListResult.cs index 1cb2cdaee8289..2411ac1f12823 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoPrivateEndpointConnectionListResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoPrivateLinkResourceListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoPrivateLinkResourceListResult.cs index a176d591b019f..90791d7556b26 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoPrivateLinkResourceListResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoResourceSkuZoneDetails.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoResourceSkuZoneDetails.cs index d22390ebcfd9e..f2ae087480747 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoResourceSkuZoneDetails.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoResourceSkuZoneDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models { diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoSkuDescription.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoSkuDescription.cs index 3db8c01276dcc..ffb8b05af94cc 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoSkuDescription.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoSkuDescription.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models { diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoSkuDescriptionList.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoSkuDescriptionList.cs index 2e6cefa9167fb..bb5efab58c08e 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoSkuDescriptionList.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoSkuDescriptionList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models { diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoSkuLocationInfoItem.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoSkuLocationInfoItem.cs index d39c84ca3b063..6cf499504aec3 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoSkuLocationInfoItem.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoSkuLocationInfoItem.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models { diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ListResourceSkusResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ListResourceSkusResult.cs index 0bdf87d5650a1..1195b815d9a83 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ListResourceSkusResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ListResourceSkusResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models { diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ManagedPrivateEndpointListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ManagedPrivateEndpointListResult.cs index 65b0accfbef3c..c02ddde148523 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ManagedPrivateEndpointListResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ManagedPrivateEndpointListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/OutboundNetworkDependenciesEndpoint.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/OutboundNetworkDependenciesEndpoint.cs index 8356ecb5fff92..9192d54aba6c2 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/OutboundNetworkDependenciesEndpoint.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/OutboundNetworkDependenciesEndpoint.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Kusto; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Kusto.Models diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesListResult.cs index 1537d050f36e2..0c9c485a5e644 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesListResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SandboxCustomImagesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ScriptListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ScriptListResult.cs index d5067cd48bdd8..a2ab87f14376d 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ScriptListResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ScriptListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Kusto; namespace Azure.ResourceManager.Kusto.Models diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Internal/ChangeTrackingList.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..baff00ae5acbb --- /dev/null +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.LabServices +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/AvailableLabServicesSku.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/AvailableLabServicesSku.cs index 1520b7b547cb9..aec350b006531 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/AvailableLabServicesSku.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/AvailableLabServicesSku.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.LabServices; namespace Azure.ResourceManager.LabServices.Models { diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/AvailableLabServicesSkuRestrictions.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/AvailableLabServicesSkuRestrictions.cs index 66f0cbc3c5b39..8028f2d08e272 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/AvailableLabServicesSkuRestrictions.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/AvailableLabServicesSkuRestrictions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.LabServices; namespace Azure.ResourceManager.LabServices.Models { diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabPlanPatch.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabPlanPatch.cs index bf24f5ce3f5a5..a16e5dc7f03e7 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabPlanPatch.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabPlanPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.LabServices; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.LabServices.Models diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesPatchBaseInfo.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesPatchBaseInfo.cs index e27771347ccd0..057d63cb364b4 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesPatchBaseInfo.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesPatchBaseInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.LabServices; namespace Azure.ResourceManager.LabServices.Models { diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesRecurrencePattern.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesRecurrencePattern.cs index f8af9bb03f069..2aa38f4c4afd8 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesRecurrencePattern.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesRecurrencePattern.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.LabServices; namespace Azure.ResourceManager.LabServices.Models { diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesUsageListResult.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesUsageListResult.cs index 190dc2151e7af..84bdca19615b0 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesUsageListResult.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesUsageListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.LabServices; namespace Azure.ResourceManager.LabServices.Models { diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesUsageName.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesUsageName.cs index b02ccfc34bcf7..0388b874f02d8 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesUsageName.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/LabServicesUsageName.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.LabServices; namespace Azure.ResourceManager.LabServices.Models { diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedImages.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedImages.cs index e34086a31be37..05d4a099420d8 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedImages.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedImages.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.LabServices; namespace Azure.ResourceManager.LabServices.Models diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedLabPlans.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedLabPlans.cs index a80b2e138beee..4da3739101d50 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedLabPlans.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedLabPlans.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.LabServices; namespace Azure.ResourceManager.LabServices.Models diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedLabServicesSkus.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedLabServicesSkus.cs index ce870aafb69b8..1d8736ac15ebc 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedLabServicesSkus.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedLabServicesSkus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.LabServices; namespace Azure.ResourceManager.LabServices.Models { diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedLabs.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedLabs.cs index 2753d93205467..2ce208db45961 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedLabs.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedLabs.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.LabServices; namespace Azure.ResourceManager.LabServices.Models diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedSchedules.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedSchedules.cs index 47fa24f180a66..21876d15cc507 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedSchedules.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedSchedules.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.LabServices; namespace Azure.ResourceManager.LabServices.Models diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedUsers.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedUsers.cs index 39ccbcde48ade..f632e814efcd3 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedUsers.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedUsers.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.LabServices; namespace Azure.ResourceManager.LabServices.Models diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedVirtualMachines.cs b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedVirtualMachines.cs index 942f4d52a700f..831b7c1acb413 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedVirtualMachines.cs +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Generated/Models/PagedVirtualMachines.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.LabServices; namespace Azure.ResourceManager.LabServices.Models diff --git a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Internal/ChangeTrackingList.cs b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..ead53143849e5 --- /dev/null +++ b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.LoadTesting +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestResourcePageList.cs b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestResourcePageList.cs index 467eb4c64555e..3deaf787f6f80 100644 --- a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestResourcePageList.cs +++ b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestResourcePageList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.LoadTesting; namespace Azure.ResourceManager.LoadTesting.Models diff --git a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingEndpointDependency.cs b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingEndpointDependency.cs index 7f3037968b4ed..a0dc3071d059d 100644 --- a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingEndpointDependency.cs +++ b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingEndpointDependency.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.LoadTesting; namespace Azure.ResourceManager.LoadTesting.Models { diff --git a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingOutboundEnvironmentEndpoint.cs b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingOutboundEnvironmentEndpoint.cs index 016e6699805c8..70a4b499d2bb0 100644 --- a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingOutboundEnvironmentEndpoint.cs +++ b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingOutboundEnvironmentEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.LoadTesting; namespace Azure.ResourceManager.LoadTesting.Models { diff --git a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingQuotaListResult.cs b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingQuotaListResult.cs index 1acce1177aa74..43667612934d1 100644 --- a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingQuotaListResult.cs +++ b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/LoadTestingQuotaListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.LoadTesting; namespace Azure.ResourceManager.LoadTesting.Models diff --git a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/OutboundEnvironmentEndpointListResult.cs b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/OutboundEnvironmentEndpointListResult.cs index c16c526672084..81d286efd0c9c 100644 --- a/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/OutboundEnvironmentEndpointListResult.cs +++ b/sdk/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated/Models/OutboundEnvironmentEndpointListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.LoadTesting; namespace Azure.ResourceManager.LoadTesting.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Internal/ChangeTrackingList.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..136015dafd2a4 --- /dev/null +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Logic +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/B2BPartnerContent.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/B2BPartnerContent.cs index 697302fa8a426..e6e2d27a2c8ef 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/B2BPartnerContent.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/B2BPartnerContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/BatchConfigurationCollection.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/BatchConfigurationCollection.cs index 0b3e51c95e450..5ac7348e60606 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/BatchConfigurationCollection.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/BatchConfigurationCollection.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/EdifactProtocolSettings.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/EdifactProtocolSettings.cs index ceb9e43531fe4..3ba3db9d2774a 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/EdifactProtocolSettings.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/EdifactProtocolSettings.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/ExpressionTraces.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/ExpressionTraces.cs index 12edcd07e9f6e..d928a3ceb6f22 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/ExpressionTraces.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/ExpressionTraces.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/FlowAccessControlConfigurationPolicy.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/FlowAccessControlConfigurationPolicy.cs index 5fc3e00cd612a..304a313c412b6 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/FlowAccessControlConfigurationPolicy.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/FlowAccessControlConfigurationPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/FlowEndpoints.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/FlowEndpoints.cs index 3b49ccc0d6732..2cf0888759d9c 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/FlowEndpoints.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/FlowEndpoints.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAgreementListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAgreementListResult.cs index 1f14d0b038b50..5988cd5ba3533 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAgreementListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAgreementListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAssemblyList.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAssemblyList.cs index af719bc0fbb7b..9649cd58bb732 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAssemblyList.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountAssemblyList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountCertificateListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountCertificateListResult.cs index 995d829f824de..551b186eedc6a 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountCertificateListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountCertificateListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountKeyVaultKeyList.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountKeyVaultKeyList.cs index d63e5725bd052..660c4ecc3e712 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountKeyVaultKeyList.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountKeyVaultKeyList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountListResult.cs index 57b9547a9d9cf..e6dbbfd5756d4 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountMapListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountMapListResult.cs index 3fcdb1749f4a2..51d3643a829dd 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountMapListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountMapListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountPartnerListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountPartnerListResult.cs index ec69a148f0f4a..d58aae41d6e9d 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountPartnerListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountPartnerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountSchemaListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountSchemaListResult.cs index 9180e26bb512a..28529045b3a75 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountSchemaListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountSchemaListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountSessionListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountSessionListResult.cs index 5ebe91bcb817e..50d6ffb922e6e 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountSessionListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationAccountSessionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentListResult.cs index a53a89dc496a4..6c92c091ebd57 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentManagedApiListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentManagedApiListResult.cs index 0c9ff1fbd58f6..262a4bb8eda7d 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentManagedApiListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentManagedApiListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependency.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependency.cs index 905461d88addc..cbda2d3b1bbf0 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependency.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkDependency.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkEndpoint.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkEndpoint.cs index bdd23dffd92ee..a5cd18e35e649 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkEndpoint.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentNetworkEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuList.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuList.cs index e22b6e72e27c2..12dcd0536af2d 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuList.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentSkuList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentSubnetNetworkHealth.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentSubnetNetworkHealth.cs index 4c8a4b8d65ce9..712eae2f7cfe6 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentSubnetNetworkHealth.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceEnvironmentSubnetNetworkHealth.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceErrorInfo.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceErrorInfo.cs index 8435aed470c1a..40e46d62485bf 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceErrorInfo.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceErrorInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceNetworkConfiguration.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceNetworkConfiguration.cs index 5bbe930feb609..ef03bbbd85277 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceNetworkConfiguration.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/IntegrationServiceNetworkConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicApiOperationListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicApiOperationListResult.cs index b02bc75a51a12..4e1b3ef344b1c 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicApiOperationListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicApiOperationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicExpression.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicExpression.cs index 2a37e1d5248b4..91643f09cbab3 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicExpression.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicExpression.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicExpressionErrorInfo.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicExpressionErrorInfo.cs index bf0a03df1f0d2..89f405932a370 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicExpressionErrorInfo.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicExpressionErrorInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowListResult.cs index 3199156bac76e..66a3b43f1d808 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRecurrenceSchedule.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRecurrenceSchedule.cs index e5c528d4c449b..70e4cc6e24aec 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRecurrenceSchedule.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRecurrenceSchedule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRequestHistoryListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRequestHistoryListResult.cs index 0dd8acb231ee6..b1788d67110df 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRequestHistoryListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRequestHistoryListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionListResult.cs index 3c694a8ec639b..455660fcfa3e6 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionRepetitionDefinitionList.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionRepetitionDefinitionList.cs index 026f8d8418cc8..4b638e12aa178 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionRepetitionDefinitionList.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunActionRepetitionDefinitionList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunCorrelation.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunCorrelation.cs index e8372e7b0f8cc..a9b4e7a3cae3f 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunCorrelation.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunCorrelation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunListResult.cs index 6e8f68722d4de..974664674e45e 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowRunListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerCallbackUri.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerCallbackUri.cs index 7d61b58abd077..7f6f0c74d8bbf 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerCallbackUri.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerCallbackUri.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerHistoryListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerHistoryListResult.cs index edbfcb2924933..5e18478836222 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerHistoryListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerHistoryListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerListResult.cs index 0b71814d7913d..798bd95fd049b 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowTriggerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowVersionListResult.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowVersionListResult.cs index 059e063981227..cc1aaa32fc3a0 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowVersionListResult.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWorkflowVersionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWsdlService.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWsdlService.cs index 2db45c0276483..b733cf751d536 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWsdlService.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/LogicWsdlService.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/OpenAuthenticationAccessPolicy.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/OpenAuthenticationAccessPolicy.cs index 3685faeede06f..bd3a94bd58e14 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/OpenAuthenticationAccessPolicy.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/OpenAuthenticationAccessPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/SwaggerSchema.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/SwaggerSchema.cs index 2eb23c6cffb07..1bc919f023e6a 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/SwaggerSchema.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/SwaggerSchema.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/X12ProtocolSettings.cs b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/X12ProtocolSettings.cs index 00624b91a1504..73ad2423b9e02 100644 --- a/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/X12ProtocolSettings.cs +++ b/sdk/logic/Azure.ResourceManager.Logic/src/Generated/Models/X12ProtocolSettings.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Logic; namespace Azure.ResourceManager.Logic.Models { diff --git a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Internal/ChangeTrackingList.cs b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..6120539baa42a --- /dev/null +++ b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.MachineLearningCompute +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/AcsClusterProperties.cs b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/AcsClusterProperties.cs index 7448265b3da47..2512886fbe919 100644 --- a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/AcsClusterProperties.cs +++ b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/AcsClusterProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearningCompute; namespace Azure.ResourceManager.MachineLearningCompute.Models { diff --git a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/AvailableOperations.cs b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/AvailableOperations.cs index 74107c1c1e110..a4f7b9993125e 100644 --- a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/AvailableOperations.cs +++ b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/AvailableOperations.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearningCompute; namespace Azure.ResourceManager.MachineLearningCompute.Models { diff --git a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/ErrorResponse.cs b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/ErrorResponse.cs index 9470de53de4f8..3313f840eb95c 100644 --- a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/ErrorResponse.cs +++ b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/ErrorResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearningCompute; namespace Azure.ResourceManager.MachineLearningCompute.Models { diff --git a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/PaginatedOperationalizationClustersList.cs b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/PaginatedOperationalizationClustersList.cs index fdb5619c9aa08..412c13fbe7585 100644 --- a/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/PaginatedOperationalizationClustersList.cs +++ b/sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/src/Generated/Models/PaginatedOperationalizationClustersList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearningCompute; namespace Azure.ResourceManager.MachineLearningCompute.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Internal/ChangeTrackingList.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..653ca7bb3c1bb --- /dev/null +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.MachineLearning +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlComputeNodesInformation.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlComputeNodesInformation.cs index 9abb6ad0e51d6..be07042287e1e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlComputeNodesInformation.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlComputeNodesInformation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlComputeProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlComputeProperties.cs index 1317ce7310e1e..7f260963f5a04 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlComputeProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlComputeProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegression.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegression.cs index 5fcd219a610b8..007ef778b9553 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegression.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AutoMLVerticalRegression.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentTrackedResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentTrackedResourceArmPaginatedResult.cs index 0cb4ff223672f..fa9b6d893f850 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentTrackedResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchDeploymentTrackedResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchEndpointTrackedResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchEndpointTrackedResourceArmPaginatedResult.cs index 872ebf88af7b5..f0c7756446e7b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchEndpointTrackedResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/BatchEndpointTrackedResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTask.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTask.cs index aaf50d922cb1b..a02f414284371 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTask.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTask.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTrainingSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTrainingSettings.cs index a237887806028..d91f946e2467c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTrainingSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ClassificationTrainingSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CodeContainerResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CodeContainerResourceArmPaginatedResult.cs index 8ff4603cb2f07..b493f64d7ba35 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CodeContainerResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CodeContainerResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CodeVersionResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CodeVersionResourceArmPaginatedResult.cs index 3193a784c7e29..412909547a9fa 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CodeVersionResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CodeVersionResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ColumnTransformer.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ColumnTransformer.cs index 71466f4f15e59..34803a57a3879 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ColumnTransformer.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ColumnTransformer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComponentContainerResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComponentContainerResourceArmPaginatedResult.cs index bc4b5756e0bae..614355824b079 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComponentContainerResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComponentContainerResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComponentVersionResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComponentVersionResourceArmPaginatedResult.cs index c0f2aa667726c..611709e86620f 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComponentVersionResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ComponentVersionResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.cs index 09c4502c2f7ec..9462ebceba20e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/CustomService.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataContainerResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataContainerResourceArmPaginatedResult.cs index d9131d0a3d863..756eff95e5545 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataContainerResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataContainerResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataVersionBaseResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataVersionBaseResourceArmPaginatedResult.cs index d4650781baf22..a8652f92c7192 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataVersionBaseResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DataVersionBaseResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatabaseSource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatabaseSource.cs index 619937c580d4c..f59d454cdfb90 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatabaseSource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatabaseSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatastoreResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatastoreResourceArmPaginatedResult.cs index 139b0dc8eefdf..a3444336d800c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatastoreResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/DatastoreResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentContainerResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentContainerResourceArmPaginatedResult.cs index 19fb55a5631dd..299f541d47ef9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentContainerResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentContainerResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVersionResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVersionResourceArmPaginatedResult.cs index 58c8dacbc4cc1..cc66d965a2045 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVersionResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/EnvironmentVersionResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.cs index 545e0007a59cf..1f93dd41e7b2e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ExternalFqdnResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.cs index 288a30ba3e393..7e4c509175b30 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeatureResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.cs index 49c13ac37661b..1d22cd0ed6ae3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetContainerResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.cs index 6adb0deb90221..eced51712cb98 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetJobArmPaginatedResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.cs index 8843f003c31c3..62d84c9adb48b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturesetVersionResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.cs index 3b0bd7fb830af..24b93522100d4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityContainerResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.cs index 70653ecd1b619..9980a760f820c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/FeaturestoreEntityVersionResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingSettings.cs index 5e5ebcdf8b93c..279c62e62dd69 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingTrainingSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingTrainingSettings.cs index 5622243b8eb3f..f6eb927a52410 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingTrainingSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ForecastingTrainingSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMonitoringSignal.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMonitoringSignal.cs index e7d3cd77ab805..2138dc45587f0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMonitoringSignal.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/GenerationSafetyQualityMonitoringSignal.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageClassification.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageClassification.cs index 66740fd72bfc6..ec37468dbe47a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageClassification.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageClassification.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageClassificationMultilabel.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageClassificationMultilabel.cs index 98b2038b20f88..86eef66677481 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageClassificationMultilabel.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageClassificationMultilabel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageInstanceSegmentation.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageInstanceSegmentation.cs index 52374cf341c5a..3e0e76d23524e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageInstanceSegmentation.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageInstanceSegmentation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageObjectDetection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageObjectDetection.cs index 1765fe7a20cd9..b542eb5bcb147 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageObjectDetection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ImageObjectDetection.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobBaseResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobBaseResourceArmPaginatedResult.cs index 072d6babb8867..1d8cb589ca438 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobBaseResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/JobBaseResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs index 84a82cf2dd8f4..21501f2e85601 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.cs index 5d5349ff49352..62c416c0146b1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/LabelingJobResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ListAmlUserFeatureResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ListAmlUserFeatureResult.cs index af8386d94ad6b..9d81e08b9188e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ListAmlUserFeatureResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ListAmlUserFeatureResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ListUsagesResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ListUsagesResult.cs index 58e042a21c535..deb3fc5cd7a25 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ListUsagesResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ListUsagesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ListWorkspaceQuotas.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ListWorkspaceQuotas.cs index b53257e461bdd..0e4d202ed05d4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ListWorkspaceQuotas.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ListWorkspaceQuotas.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAksComputeProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAksComputeProperties.cs index f3e6b7d3d19ca..e67f5c53d8a58 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAksComputeProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningAksComputeProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceContainer.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceContainer.cs index 83148da231f6a..f8ea86b24a22a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceContainer.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceContainer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs index 25d507075a028..46ad837af71a9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeInstanceProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeProperties.cs index 2d0f916f9bed3..d3424105b359e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComputeProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerRegistryCredentials.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerRegistryCredentials.cs index 9ba07cba661bd..9bbf3c369b817 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerRegistryCredentials.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningContainerRegistryCredentials.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreCollectionGetAllOptions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreCollectionGetAllOptions.cs index 98f56de657342..909137ab124d4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreCollectionGetAllOptions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDatastoreCollectionGetAllOptions.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDiagnoseResultValue.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDiagnoseResultValue.cs index e669cebd166a6..78627a3a3e613 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDiagnoseResultValue.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningDiagnoseResultValue.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionProperties.cs index 320a1c275793f..13fbb10e5b1c3 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureSetVersionProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityVersionProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityVersionProperties.cs index bae5dec27ed0c..af6309e0aafd9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityVersionProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFeatureStoreEntityVersionProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningForecasting.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningForecasting.cs index 5d352a8a98b3e..0afcee10d708e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningForecasting.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningForecasting.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoint.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoint.cs index 9715587b52e8f..bac4e9feabf7d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoint.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.cs index 112d82901f6d4..ed62220d77bdc 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningFqdnEndpointsProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionListResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionListResult.cs index 919b20be48617..928017a049baf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionListResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.cs index 2a942f1064856..a7babe7048881 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResource.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResourceListResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResourceListResult.cs index 28bf6ecb227a7..0b677b5bb551e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResourceListResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningQuotaUpdateContent.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningQuotaUpdateContent.cs index 3e3db34ce08e6..676f1921554fe 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningQuotaUpdateContent.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningQuotaUpdateContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRecurrenceSchedule.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRecurrenceSchedule.cs index f36150f9feed2..481257d126d9d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRecurrenceSchedule.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningRecurrenceSchedule.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningResourceConfiguration.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningResourceConfiguration.cs index af49c8dacf15e..e7faa76623ce7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningResourceConfiguration.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningResourceConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTable.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTable.cs index 69d54b9a91012..289d73d330be8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTable.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningTable.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningVmSize.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningVmSize.cs index 841fa6b77a834..94b4ee54a4576 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningVmSize.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningVmSize.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelContainerResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelContainerResourceArmPaginatedResult.cs index 77d43e87783bf..8b2b85101affb 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelContainerResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelContainerResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageContent.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageContent.cs index 43f2535975b43..8ea58a85ee89b 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageContent.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageResult.cs index 1f7a7c5ab091b..3f5deaad672b0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelPackageResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelVersionResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelVersionResourceArmPaginatedResult.cs index c4de4e990ff85..559c8b1cac562 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelVersionResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ModelVersionResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringDataSegment.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringDataSegment.cs index 3d3fa649cbe25..8dde58ec6d5a4 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringDataSegment.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MonitoringDataSegment.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.cs index 363a48b7c8d99..3eccccc0aac4a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/NotificationSetting.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineDeploymentTrackedResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineDeploymentTrackedResourceArmPaginatedResult.cs index c67de3fe15572..6339128587c83 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineDeploymentTrackedResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineDeploymentTrackedResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineEndpointTrackedResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineEndpointTrackedResourceArmPaginatedResult.cs index 59fa4106cf8c1..099a0a3000447 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineEndpointTrackedResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OnlineEndpointTrackedResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.cs index 7d9a33426ad35..b4e82d133eedd 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/OutboundRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PaginatedComputeResourcesList.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PaginatedComputeResourcesList.cs index 8779765cbadf3..285b98b980d1c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PaginatedComputeResourcesList.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/PaginatedComputeResourcesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.cs index e27f21db02757..a1385b87418e9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryPrivateEndpointConnection.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.cs index 152b4ca4fdc73..0a13fad99f6ba 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryRegionArmDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.cs index 5b6a9d0848feb..eb5757f660411 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryTrackedResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionTrainingSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionTrainingSettings.cs index e7454aec08b93..cea74e09dde88 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionTrainingSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegressionTrainingSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RequestLogging.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RequestLogging.cs index ec267b2526480..05fd3e0134fcf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RequestLogging.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RequestLogging.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ScheduleResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ScheduleResourceArmPaginatedResult.cs index d605f7410dd79..1ddf411129e44 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ScheduleResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ScheduleResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.cs index 46849267f1c91..2811c25ea611c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ServiceTagDestination.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SkuResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SkuResourceArmPaginatedResult.cs index 857e1f272132e..3592079057628 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SkuResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SkuResourceArmPaginatedResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.cs index f7c2ddde34016..dc6384a535ad8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/SparkJob.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableVerticalFeaturizationSettings.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableVerticalFeaturizationSettings.cs index 916f1a4d5a1fb..5d8abbc353a6e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableVerticalFeaturizationSettings.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TableVerticalFeaturizationSettings.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassification.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassification.cs index b6d9ec4adb672..b2245d150136d 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassification.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassification.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassificationMultilabel.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassificationMultilabel.cs index d63c5ecb1a59b..193d5b171dcf0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassificationMultilabel.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextClassificationMultilabel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextNer.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextNer.cs index 39d50d9919eb6..4ed185b27e90e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextNer.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/TextNer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UpdateWorkspaceQuotasResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UpdateWorkspaceQuotasResult.cs index 0a0f6e41c253e..a0ff1efa4b002 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UpdateWorkspaceQuotasResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UpdateWorkspaceQuotasResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VirtualMachineSizeListResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VirtualMachineSizeListResult.cs index 5a80b2e4cd9d7..e2d1dad8055be 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VirtualMachineSizeListResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/VirtualMachineSizeListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.cs index 2c9abc3184de4..4aa2b6528354c 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceHubConfig.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceHubConfig.cs index d9f186352430d..6ee8dbf1c14ed 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceHubConfig.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceHubConfig.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceListResult.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceListResult.cs index d16a6d49de401..6724eb3a1c276 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceListResult.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/WorkspaceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MachineLearning; namespace Azure.ResourceManager.MachineLearning.Models diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Internal/ChangeTrackingList.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..8cd4e902229ae --- /dev/null +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Maintenance +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceApplyUpdateListResult.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceApplyUpdateListResult.cs index cbf112fc99d3f..b09355ec08f33 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceApplyUpdateListResult.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceApplyUpdateListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Maintenance; namespace Azure.ResourceManager.Maintenance.Models diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationAssignmentFilter.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationAssignmentFilter.cs index f57ae5760a96b..ca9be04e60695 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationAssignmentFilter.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationAssignmentFilter.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Maintenance; namespace Azure.ResourceManager.Maintenance.Models { diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationAssignmentListResult.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationAssignmentListResult.cs index 62e860c37c4ba..4448fecb34a33 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationAssignmentListResult.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationAssignmentListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Maintenance; namespace Azure.ResourceManager.Maintenance.Models { diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationListResult.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationListResult.cs index 5f58e1b52f9a5..c6e1999ae3cfa 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationListResult.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Maintenance; namespace Azure.ResourceManager.Maintenance.Models diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceLinuxPatchSettings.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceLinuxPatchSettings.cs index 4e462c9478a74..0b58e6434e167 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceLinuxPatchSettings.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceLinuxPatchSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Maintenance; namespace Azure.ResourceManager.Maintenance.Models { diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceUpdateListResult.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceUpdateListResult.cs index e2bbc2fb3a395..63a016ee46b82 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceUpdateListResult.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceUpdateListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Maintenance; namespace Azure.ResourceManager.Maintenance.Models { diff --git a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceWindowsPatchSettings.cs b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceWindowsPatchSettings.cs index 1521e9ce2ae7a..5046b8cf22f20 100644 --- a/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceWindowsPatchSettings.cs +++ b/sdk/maintenance/Azure.ResourceManager.Maintenance/src/Generated/Models/MaintenanceWindowsPatchSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Maintenance; namespace Azure.ResourceManager.Maintenance.Models { diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Internal/ChangeTrackingList.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..a03a861fd3d52 --- /dev/null +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ManagedNetwork +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ConnectivityCollection.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ConnectivityCollection.cs index f80cc67349efd..93777c6e786b4 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ConnectivityCollection.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ConnectivityCollection.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetwork; namespace Azure.ResourceManager.ManagedNetwork.Models diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkGroupListResult.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkGroupListResult.cs index 9a20df7703796..f707d295f5451 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkGroupListResult.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetwork; namespace Azure.ResourceManager.ManagedNetwork.Models diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkListResult.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkListResult.cs index a8721ab8fdcc0..ca49b8de90f05 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkListResult.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetwork; namespace Azure.ResourceManager.ManagedNetwork.Models diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkPeeringPolicyListResult.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkPeeringPolicyListResult.cs index b565b78ce76e0..ebd4645e19f48 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkPeeringPolicyListResult.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkPeeringPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetwork; namespace Azure.ResourceManager.ManagedNetwork.Models diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkPeeringPolicyProperties.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkPeeringPolicyProperties.cs index 9eae2f222ecd7..a8c2b07f2b37e 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkPeeringPolicyProperties.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ManagedNetworkPeeringPolicyProperties.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.ManagedNetwork; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.ManagedNetwork.Models diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/Scope.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/Scope.cs index 2727704d4c4f0..cb2922dd1b14a 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/Scope.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/Scope.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetwork; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.ManagedNetwork.Models diff --git a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ScopeAssignmentListResult.cs b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ScopeAssignmentListResult.cs index ec354b98cce9e..34d0508fcea3b 100644 --- a/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ScopeAssignmentListResult.cs +++ b/sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/src/Generated/Models/ScopeAssignmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetwork; namespace Azure.ResourceManager.ManagedNetwork.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Internal/ChangeTrackingList.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..a83287ffcfcc3 --- /dev/null +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ManagedNetworkFabric +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListMatchCondition.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListMatchCondition.cs index 0eaca280fa744..5e5bbc4aa7306 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListMatchCondition.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListMatchConfiguration.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListMatchConfiguration.cs index 2c1dd0208915d..4363f7cc6cf6a 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListMatchConfiguration.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListMatchConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListPortCondition.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListPortCondition.cs index 51e85d15050fa..0fc32d24394f4 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListPortCondition.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListPortCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListsResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListsResult.cs index 0d543f76c9b1f..46d69abfc8c76 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListsResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AccessControlListsResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AggregateRouteConfiguration.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AggregateRouteConfiguration.cs index a29eba7f99f2a..697a6655dbb32 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AggregateRouteConfiguration.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/AggregateRouteConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/BgpConfiguration.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/BgpConfiguration.cs index 18e1213c5b45a..e3e7814512d50 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/BgpConfiguration.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/BgpConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/CommonDynamicMatchConfiguration.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/CommonDynamicMatchConfiguration.cs index 5a28430da2e54..4b30390d558ba 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/CommonDynamicMatchConfiguration.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/CommonDynamicMatchConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/CommonMatchConditions.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/CommonMatchConditions.cs index bf2f7bc80b9ea..4fe3f5b9b2e59 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/CommonMatchConditions.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/CommonMatchConditions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/DeviceUpdateCommonPostActionResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/DeviceUpdateCommonPostActionResult.cs index 11a669eac282e..2c2e09b6ea8cc 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/DeviceUpdateCommonPostActionResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/DeviceUpdateCommonPostActionResult.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/ExternalNetworksList.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/ExternalNetworksList.cs index 81e508048bb2e..5b37c674a2c5e 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/ExternalNetworksList.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/ExternalNetworksList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPCommunitiesListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPCommunitiesListResult.cs index 67ca5a46d62f4..01714442d1f2a 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPCommunitiesListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPCommunitiesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPCommunityIdList.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPCommunityIdList.cs index 4727dd0953e11..e70270c9a8ec4 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPCommunityIdList.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPCommunityIdList.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPCommunityRule.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPCommunityRule.cs index e9e8f20e3915c..6aa4b819f0644 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPCommunityRule.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPCommunityRule.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPExtendedCommunityIdList.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPExtendedCommunityIdList.cs index 9f827d32e04b5..1ff4ace4480e1 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPExtendedCommunityIdList.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPExtendedCommunityIdList.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPExtendedCommunityListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPExtendedCommunityListResult.cs index 2926057aaa00a..8d7425e83b5d9 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPExtendedCommunityListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPExtendedCommunityListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPMatchCondition.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPMatchCondition.cs index 537594fcdfbea..061404373a328 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPMatchCondition.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPPrefixesListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPPrefixesListResult.cs index ab94e077c4dcd..4c88341a60ee3 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPPrefixesListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IPPrefixesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/InternalNetworksList.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/InternalNetworksList.cs index 675421d2143fd..7ebea9f03d394 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/InternalNetworksList.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/InternalNetworksList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/InternetGatewayRulesListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/InternetGatewayRulesListResult.cs index a6cafcf257674..13adb1b550856 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/InternetGatewayRulesListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/InternetGatewayRulesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/InternetGatewaysListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/InternetGatewaysListResult.cs index 85a5a4cb0a29f..5805c68ebda04 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/InternetGatewaysListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/InternetGatewaysListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IsolationDomainProperties.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IsolationDomainProperties.cs index e6273aa13447d..108c5fdba7e73 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IsolationDomainProperties.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/IsolationDomainProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/L2IsolationDomainsListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/L2IsolationDomainsListResult.cs index a0ad14664d1e0..d7bbb6abf333e 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/L2IsolationDomainsListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/L2IsolationDomainsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/L3IsolationDomainsListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/L3IsolationDomainsListResult.cs index 0f21dc16abff1..236f19138be5b 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/L3IsolationDomainsListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/L3IsolationDomainsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/L3OptionBProperties.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/L3OptionBProperties.cs index 8b78d3933acc3..8b147d822d644 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/L3OptionBProperties.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/L3OptionBProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/Layer2Configuration.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/Layer2Configuration.cs index 0006a8de657aa..0a6bce8abdbd2 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/Layer2Configuration.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/Layer2Configuration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/MatchConfigurationIPGroupProperties.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/MatchConfigurationIPGroupProperties.cs index e8578590c0609..424f6042f602a 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/MatchConfigurationIPGroupProperties.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/MatchConfigurationIPGroupProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NeighborGroupDestination.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NeighborGroupDestination.cs index 4fd8a316fa25c..0e60f9d0e2286 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NeighborGroupDestination.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NeighborGroupDestination.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NeighborGroupsListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NeighborGroupsListResult.cs index 37bd3bc66ccc2..4bc818b3a4656 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NeighborGroupsListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NeighborGroupsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceInterfaceProperties.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceInterfaceProperties.cs index bdd1571fa0c2a..ce344347e4764 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceInterfaceProperties.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceInterfaceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceInterfacesList.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceInterfacesList.cs index 6adc69b6839ea..5e3e5e749f0c4 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceInterfacesList.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceInterfacesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceSkusListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceSkusListResult.cs index 2ece9e8716ad8..e2036931f6189 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceSkusListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDeviceSkusListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDevicesListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDevicesListResult.cs index 2302278a34d45..d2ff3f2b3eda9 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDevicesListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkDevicesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricAccessControlListPatch.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricAccessControlListPatch.cs index 028736ebcaf80..e85183d202904 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricAccessControlListPatch.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricAccessControlListPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllerPatch.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllerPatch.cs index b6fe7888b304f..c7818d130d5d8 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllerPatch.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllerPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllerServices.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllerServices.cs index 6bd16c5f96aca..b0596ef48fc31 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllerServices.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllerServices.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllersListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllersListResult.cs index 77bd1d765deaf..64d08f28219ef 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllersListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricControllersListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPCommunityPatch.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPCommunityPatch.cs index fb9516295d6d3..bfe07f259aea8 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPCommunityPatch.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPCommunityPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPExtendedCommunityPatch.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPExtendedCommunityPatch.cs index 8a0f2fef15a42..a66a640dec5fb 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPExtendedCommunityPatch.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPExtendedCommunityPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPPrefixPatch.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPPrefixPatch.cs index 754f36e908f7b..f1ec0f59343cd 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPPrefixPatch.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricIPPrefixPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricInternalNetworkPatch.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricInternalNetworkPatch.cs index bd77b71469e19..11ca76754d912 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricInternalNetworkPatch.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricInternalNetworkPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricPortCondition.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricPortCondition.cs index ee7ba07a55a38..3bb6a109979d7 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricPortCondition.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricPortCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricRoutePolicyPatch.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricRoutePolicyPatch.cs index 9cf5e5791b5ca..435a3ae037291 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricRoutePolicyPatch.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricRoutePolicyPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricSkusListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricSkusListResult.cs index 6e49a44c77e76..fadcb773e3024 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricSkusListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricSkusListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricsListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricsListResult.cs index c5dd530a52680..521648b5040ee 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricsListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkFabricsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkPacketBrokersListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkPacketBrokersListResult.cs index feecec4b56361..ee65dbca3b6d1 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkPacketBrokersListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkPacketBrokersListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkRacksListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkRacksListResult.cs index 0ac90f8e0e739..b04e9fd3b7bd0 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkRacksListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkRacksListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapPatch.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapPatch.cs index b0b5ef47f7ad4..59cb23ed1363e 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapPatch.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRuleMatchConfiguration.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRuleMatchConfiguration.cs index 08ab9bed4d2a2..4c6038bb2ffdd 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRuleMatchConfiguration.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRuleMatchConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRulePatch.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRulePatch.cs index 8e2a2e354f2bd..8d83ae1ff4857 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRulePatch.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRulePatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRulesListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRulesListResult.cs index cebfb68ad1036..b7346d8cebd69 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRulesListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapRulesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapsListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapsListResult.cs index 0e0c527145f6c..8fcc8b0a1e1ce 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapsListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkTapsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkToNetworkInterconnectsList.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkToNetworkInterconnectsList.cs index e419bf70836a1..90f6b5227f65b 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkToNetworkInterconnectsList.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NetworkToNetworkInterconnectsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NpbStaticRouteConfiguration.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NpbStaticRouteConfiguration.cs index 409a470854816..8207252b5c00c 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NpbStaticRouteConfiguration.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/NpbStaticRouteConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/OptionBProperties.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/OptionBProperties.cs index b13c52747ab38..f4ce9048ffae0 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/OptionBProperties.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/OptionBProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/PortGroupProperties.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/PortGroupProperties.cs index 3672e2545f488..63b7a8d2303b7 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/PortGroupProperties.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/PortGroupProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/RoutePoliciesListResult.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/RoutePoliciesListResult.cs index 122b53eb9dfeb..c7bfe7bbbd258 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/RoutePoliciesListResult.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/RoutePoliciesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/RouteTargetInformation.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/RouteTargetInformation.cs index d956c3f4a5292..91552176c0558 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/RouteTargetInformation.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/RouteTargetInformation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/StatementConditionProperties.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/StatementConditionProperties.cs index 93d679f771f7a..5f44a290d18ac 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/StatementConditionProperties.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/StatementConditionProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/StaticRouteConfiguration.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/StaticRouteConfiguration.cs index b38ff55a4c5af..1a083b9f4c63f 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/StaticRouteConfiguration.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/StaticRouteConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/UpdateAdministrativeStateOnResources.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/UpdateAdministrativeStateOnResources.cs index b1f2b37a84688..3fd379d83e446 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/UpdateAdministrativeStateOnResources.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/UpdateAdministrativeStateOnResources.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/VlanGroupProperties.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/VlanGroupProperties.cs index bef99dfaaa754..6f83369f785b0 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/VlanGroupProperties.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/VlanGroupProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/VlanMatchCondition.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/VlanMatchCondition.cs index 914880fd517fc..e4b41603bf766 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/VlanMatchCondition.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/src/Generated/Models/VlanMatchCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedNetworkFabric; namespace Azure.ResourceManager.ManagedNetworkFabric.Models { diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Internal/ChangeTrackingList.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..433437413a491 --- /dev/null +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ManagedServiceIdentities +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/FederatedIdentityCredentialsListResult.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/FederatedIdentityCredentialsListResult.cs index 919e937588fc9..7341aae6341c7 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/FederatedIdentityCredentialsListResult.cs +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/FederatedIdentityCredentialsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedServiceIdentities; namespace Azure.ResourceManager.ManagedServiceIdentities.Models diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/UserAssignedIdentitiesListResult.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/UserAssignedIdentitiesListResult.cs index 4413824ece141..6c839be71152a 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/UserAssignedIdentitiesListResult.cs +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Models/UserAssignedIdentitiesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedServiceIdentities; namespace Azure.ResourceManager.ManagedServiceIdentities.Models diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Internal/ChangeTrackingList.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..e3624506edc34 --- /dev/null +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ManagedServices +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesAuthorization.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesAuthorization.cs index 6ddf273a79e6c..030109a136107 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesAuthorization.cs +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesAuthorization.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedServices; namespace Azure.ResourceManager.ManagedServices.Models { diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesJustInTimeAccessPolicy.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesJustInTimeAccessPolicy.cs index 927eb1ef9aab9..46f783d2d8937 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesJustInTimeAccessPolicy.cs +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesJustInTimeAccessPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedServices; namespace Azure.ResourceManager.ManagedServices.Models { diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesMarketplaceRegistrationProperties.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesMarketplaceRegistrationProperties.cs index f0166510c33dd..3a6b2f5e0890f 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesMarketplaceRegistrationProperties.cs +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesMarketplaceRegistrationProperties.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.ManagedServices; namespace Azure.ResourceManager.ManagedServices.Models { diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationAssignmentListResult.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationAssignmentListResult.cs index bcc15712b7f3d..0024156021658 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationAssignmentListResult.cs +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationAssignmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedServices; namespace Azure.ResourceManager.ManagedServices.Models diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationAssignmentRegistrationProperties.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationAssignmentRegistrationProperties.cs index 66166157f983c..3ca36681d6f35 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationAssignmentRegistrationProperties.cs +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationAssignmentRegistrationProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagedServices; namespace Azure.ResourceManager.ManagedServices.Models { diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationListResult.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationListResult.cs index f5ee6cc0ba0ed..ace88f2a67775 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationListResult.cs +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedServices; namespace Azure.ResourceManager.ManagedServices.Models diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationProperties.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationProperties.cs index a49abccb3641f..feef992e5b824 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationProperties.cs +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/ManagedServicesRegistrationProperties.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.ManagedServices; namespace Azure.ResourceManager.ManagedServices.Models { diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/MarketplaceRegistrationDefinitionList.cs b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/MarketplaceRegistrationDefinitionList.cs index 54496dac09cf5..a759d06a235dd 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/MarketplaceRegistrationDefinitionList.cs +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Generated/Models/MarketplaceRegistrationDefinitionList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ManagedServices; namespace Azure.ResourceManager.ManagedServices.Models diff --git a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/Internal/ChangeTrackingList.cs b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..20824a4f4aa79 --- /dev/null +++ b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ManagementPartner +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/Models/OperationList.cs b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/Models/OperationList.cs index c9be094d0e5c6..e2f20dd8c71aa 100644 --- a/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/Models/OperationList.cs +++ b/sdk/managementpartner/Azure.ResourceManager.ManagementPartner/src/Generated/Models/OperationList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ManagementPartner; namespace Azure.ResourceManager.ManagementPartner.Models { diff --git a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Internal/ChangeTrackingList.cs b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..2dbfbe5acbdb9 --- /dev/null +++ b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Maps.Geolocation +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorDetail.Serialization.cs index 8f745135f3b2f..15c1301cef226 100644 --- a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorDetail.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Maps.Geolocation { diff --git a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorDetail.cs b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorDetail.cs index ee2dc84ca8edd..55e2508bcaf0e 100644 --- a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorDetail.cs +++ b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorDetail.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Maps.Geolocation { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Internal/ChangeTrackingList.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..84a7b3d792b69 --- /dev/null +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Maps.Rendering +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} 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 8ea535f04f959..d2b9e912c885b 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 @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; 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 9da7230915310..f5e1ae56aea80 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorDetail.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorDetail.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; 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 d2bb090ffb305..566f92eac149c 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 @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; 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 43e818f0cab5d..980e692325c69 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapAttribution.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapAttribution.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; 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 75b36e4170322..9aac2eec2aeae 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 @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; 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 59488c731abd2..e6785a2144e0f 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapTileSet.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapTileSet.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; 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 04771da6cb26c..3050024cd5af5 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 @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyright.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyright.cs index 35cc99f6c1ffa..c6d677c045b99 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyright.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyright.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; 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 331d7bcc4ec1c..8111857a5492e 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 @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; 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 9fc2856c07290..d56ab1fe2d885 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RenderCopyright.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RenderCopyright.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Internal/ChangeTrackingList.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..5e466673e3bd0 --- /dev/null +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Maps.Routing +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} 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 f565e8bd5e612..f789684efb837 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequest.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequest.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Routing; 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 c8f2a84d127d4..8e1df908bd1bf 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 @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Routing; 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 a61d1b04b8138..b49a91970901e 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorDetail.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorDetail.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Routing; 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 b65a72648132a..37232ef5bcb0f 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 @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Routing; 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 2a73be1832636..b7112f5ef5092 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteData.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteData.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Routing; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionParameters.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionParameters.cs index 5efe349a3280d..bd7b0e92de4b4 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionParameters.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionParameters.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; using Azure.Maps.Routing.Models; 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 11d4b18695e91..08ce4abe8ebb8 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 @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Routing; 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 9c849b56d223a..26047ab3ce4eb 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirections.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirections.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Routing; 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 1b28a7df9cba0..ac46ba7fc7b7d 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 @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Routing; 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 d10fac6622a2d..4670ac8f2a119 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 @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Routing; 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 fa67a2a1914f0..93cd382135d89 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchResult.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Routing; 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 d6807feb32dc6..e3d7d2cd77571 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 @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Routing; 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 e088b73d1f69e..43e02f769825c 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteGuidance.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteGuidance.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Routing; 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 96ab47d6dd0f0..750f0c7aa88a8 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 @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Routing; 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 82dd6f2c944bc..b5fe27db363fd 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstruction.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstruction.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Routing; 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 b83050be8a5dd..0c619ec3201ee 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 @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Routing; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLeg.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLeg.cs index 787cf6d2eabf6..f5cf3bee8b965 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLeg.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLeg.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Routing; namespace Azure.Maps.Routing.Models { 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 8a81f37ccdea0..1c45eb872003a 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 @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Routing; 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 57626d60bd26b..6462c850d118c 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResult.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Routing; 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 2c23d25296a30..de61c1f1e4581 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 @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Routing; 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 e7f5b736e7eb0..30db2818da776 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRange.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRange.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Routing; 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 2b2454c2df80f..7a2d382c1f3ca 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 @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Routing; 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 5afb3b4daec7b..f6769e7dbe027 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteReport.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteReport.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Routing; 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 049b846d7d8b5..6a1882ec72c2c 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 @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Routing; 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 84ac8fe6020ca..f73b3bac1b515 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTec.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTec.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Routing; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Internal/ChangeTrackingList.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..facce47bb93e4 --- /dev/null +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Maps.Search +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchRequestInternal.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchRequestInternal.cs index fa87f64b2677e..6d74efc5c7a28 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchRequestInternal.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchRequestInternal.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorDetail.Serialization.cs index 6584e306fc918..580c942efd8be 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorDetail.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorDetail.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorDetail.cs index 4cccafed53c73..10ae1a30a3a32 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorDetail.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorDetail.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsAddress.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsAddress.Serialization.cs index 2d64617d93384..2ba014852e3ae 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsAddress.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsAddress.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsAddress.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsAddress.cs index 0fe9c2023c546..642a671d84d99 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsAddress.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsAddress.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHours.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHours.Serialization.cs index 8069985ca443f..69a38cdccf55b 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHours.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHours.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHours.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHours.cs index e613c1529cef0..3b9d92948a403 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHours.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHours.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterest.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterest.Serialization.cs index e3caafa208154..1fe0bd520c5e2 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterest.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterest.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterest.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterest.cs index 004b97446e859..c799346320a15 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterest.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterest.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategory.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategory.Serialization.cs index ef6cbb32d665f..5e7022b3e258f 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategory.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategory.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategory.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategory.cs index f0d9c38a9092c..1147e6e844c25 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategory.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategory.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategoryTreeResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategoryTreeResult.Serialization.cs index c6dfdf49c03bc..e2641cd376b9e 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategoryTreeResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategoryTreeResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategoryTreeResult.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategoryTreeResult.cs index 2cafb0582af1c..244c4749e5f46 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategoryTreeResult.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategoryTreeResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestClassification.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestClassification.Serialization.cs index 5f0b75844c7ca..8fac1516858bb 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestClassification.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestClassification.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestClassification.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestClassification.cs index 1852dfc250ed3..66ed8f5dddb18 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestClassification.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestClassification.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonResult.Serialization.cs index e3de4b5d0c9d8..f7fa0725cfff9 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonResult.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonResult.cs index ee34d707f78e9..b9d4c355c395a 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonResult.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchItemResponse.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchItemResponse.Serialization.cs index 219206ba5e5e5..c92c66aac043f 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchItemResponse.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchItemResponse.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchResult.Serialization.cs index ad9c5ff15c87f..014342057869e 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchResult.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchResult.cs index 711918a4a487c..d0b7c9c8efd20 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchResult.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressItem.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressItem.Serialization.cs index 8a46e4489ef45..f52a5fca36ddb 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressItem.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressItem.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; using Azure.Maps.Search; namespace Azure.Maps.Search.Models diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressItem.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressItem.cs index 3beda44d1ea94..14e2615a84835 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressItem.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressItem.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; using Azure.Maps.Search; namespace Azure.Maps.Search.Models diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressResult.Serialization.cs index e4ff8701c9ee3..19db5b1b57130 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressResult.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressResult.cs index 166e59d416057..1f71e08269366 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressResult.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResult.Serialization.cs index 5b790189342a8..0032b76512939 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResult.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResult.cs index 3cc711024ed67..ea3006f033072 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResult.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchItemResponse.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchItemResponse.Serialization.cs index 77b8bd77656bc..8a8ab16a3c549 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchItemResponse.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchItemResponse.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchResult.Serialization.cs index 5a19e63750ee2..0271406869bf6 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchResult.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchResult.cs index 1d195b5776873..bde208b26c7d7 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchResult.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResult.Serialization.cs index 8709a386b4ba1..80c9cfc752810 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResult.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResult.cs index f0a8232da11f6..042b833bb0992 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResult.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Maps.Search; namespace Azure.Maps.Search.Models { diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResultItem.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResultItem.Serialization.cs index d6f30f2bc15ab..a20398d968852 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResultItem.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResultItem.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; using Azure.Maps.Search; namespace Azure.Maps.Search.Models diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResultItem.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResultItem.cs index 81e30700b6549..02c6a61b7dffe 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResultItem.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResultItem.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; using Azure.Maps.Search; namespace Azure.Maps.Search.Models diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Internal/ChangeTrackingList.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..c1e35a03a6ccc --- /dev/null +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Maps +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/CorsRules.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/CorsRules.cs index aac60f9c04c21..daf3e0672423b 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/CorsRules.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/CorsRules.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Maps; namespace Azure.ResourceManager.Maps.Models { diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountPatch.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountPatch.cs index 5f5ca566fbdeb..6944e9feb429e 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountPatch.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Maps; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Maps.Models diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountProperties.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountProperties.cs index 8bed7b998331b..b0b5f858f88b3 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountProperties.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Maps; namespace Azure.ResourceManager.Maps.Models { diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountSasContent.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountSasContent.cs index 84c54522b71b0..91e15ed860f43 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountSasContent.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccountSasContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Maps; namespace Azure.ResourceManager.Maps.Models { diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccounts.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccounts.cs index 77580366fde70..eb72ff93ac929 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccounts.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsAccounts.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Maps; namespace Azure.ResourceManager.Maps.Models diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsCreatorListResult.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsCreatorListResult.cs index 6f7035b4c02eb..a37d5d4eeba29 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsCreatorListResult.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Models/MapsCreatorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Maps; namespace Azure.ResourceManager.Maps.Models diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Internal/ChangeTrackingList.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..42675588655f1 --- /dev/null +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Marketplace +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/AcknowledgeOfferNotificationContent.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/AcknowledgeOfferNotificationContent.cs index fa4317d95e28b..88e959c5d662b 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/AcknowledgeOfferNotificationContent.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/AcknowledgeOfferNotificationContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/BulkCollectionsActionContent.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/BulkCollectionsActionContent.cs index 18aad147bd3cd..d36ac11c97564 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/BulkCollectionsActionContent.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/BulkCollectionsActionContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/BulkCollectionsActionResult.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/BulkCollectionsActionResult.cs index ce7b950e3aa61..9a8cdc89afb64 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/BulkCollectionsActionResult.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/BulkCollectionsActionResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionOffersByAllContextsPayload.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionOffersByAllContextsPayload.cs index 9d59858662fe9..96b98eeddc3bf 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionOffersByAllContextsPayload.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionOffersByAllContextsPayload.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionOffersByContext.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionOffersByContext.cs index 02d551ac37a40..0ca68fc869d6a 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionOffersByContext.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionOffersByContext.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionOffersByContextList.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionOffersByContextList.cs index 02bd4f6947793..a06ae7eac01fc 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionOffersByContextList.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionOffersByContextList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionsList.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionsList.cs index 422e3ff763abb..e5b222a27187f 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionsList.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionsSubscriptionsMappingDetails.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionsSubscriptionsMappingDetails.cs index dc3c977ee09c8..69d4339137ce7 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionsSubscriptionsMappingDetails.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionsSubscriptionsMappingDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionsToSubscriptionsMappingProperties.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionsToSubscriptionsMappingProperties.cs index 4f74480a57fcc..3dbdd0f1ed794 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionsToSubscriptionsMappingProperties.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/CollectionsToSubscriptionsMappingProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/ContextAndPlansDetails.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/ContextAndPlansDetails.cs index 072ff224e40bf..532fe95c4e1bc 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/ContextAndPlansDetails.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/ContextAndPlansDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceAdminApprovalRequestList.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceAdminApprovalRequestList.cs index 03b35c209a0be..3a0b6027636c5 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceAdminApprovalRequestList.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceAdminApprovalRequestList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceRule.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceRule.cs index e3da4a8d62fe4..67df19f8079c5 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceRule.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceRuleListResult.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceRuleListResult.cs index 8c64653ddf7ec..c68f5edd558fe 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceRuleListResult.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MarketplaceRuleListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MultiContextAndPlansContent.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MultiContextAndPlansContent.cs index 0cdcd59b63941..b17fbfda81914 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MultiContextAndPlansContent.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/MultiContextAndPlansContent.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/NewPlanNotification.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/NewPlanNotification.cs index a7afc7e1ae6db..a6ffaea9b996c 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/NewPlanNotification.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/NewPlanNotification.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/NewPlanNotificationListResult.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/NewPlanNotificationListResult.cs index 88da4e34d9415..53590882d6f90 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/NewPlanNotificationListResult.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/NewPlanNotificationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/OfferListResponse.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/OfferListResponse.cs index ac3a34294f336..350bcc7a84360 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/OfferListResponse.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/OfferListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PlanRequesterDetails.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PlanRequesterDetails.cs index 871df9508eb38..155d8ed4b3c95 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PlanRequesterDetails.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PlanRequesterDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreBillingAccountsResult.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreBillingAccountsResult.cs index 297b799073307..aeaae265c8e5f 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreBillingAccountsResult.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreBillingAccountsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreList.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreList.cs index b886af9028ae0..22290932026f3 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreList.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreNotificationsState.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreNotificationsState.cs index a6719a6f014e1..ddc65c9fc3cac 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreNotificationsState.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreNotificationsState.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResult.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResult.cs index 5d5d746b2a572..36343f085271b 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResult.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovalRequestContent.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovalRequestContent.cs index 5252e13d4250f..556abc55966b2 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovalRequestContent.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovalRequestContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovedPlansContent.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovedPlansContent.cs index 35e58e69c2542..b59e13d6f3997 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovedPlansContent.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovedPlansContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovedPlansDetails.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovedPlansDetails.cs index 770881ebdf4ac..47a15509fe62f 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovedPlansDetails.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovedPlansDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovedPlansResult.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovedPlansResult.cs index 0b7f2d4c20f92..a6ff255c67a8f 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovedPlansResult.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryApprovedPlansResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryOffers.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryOffers.cs index b403bd3ed659f..6aef35d6627df 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryOffers.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryOffers.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryUserOffersContent.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryUserOffersContent.cs index d98effd04dedc..ea886d78ff2f6 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryUserOffersContent.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryUserOffersContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryUserRulesContent.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryUserRulesContent.cs index fdd9fe4c0be4c..a3c6a9218c027 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryUserRulesContent.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/QueryUserRulesContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/RequestApprovalsDetails.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/RequestApprovalsDetails.cs index 7802e84e916cd..2e8f9cb932ca3 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/RequestApprovalsDetails.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/RequestApprovalsDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/RequestApprovalsList.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/RequestApprovalsList.cs index c0f5f52b1add8..3115457915cb0 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/RequestApprovalsList.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/RequestApprovalsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/SetRulesContent.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/SetRulesContent.cs index c27f047231133..c3a7d48170391 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/SetRulesContent.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/SetRulesContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellNotifications.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellNotifications.cs index da9c8d5da8319..43c3880f1338f 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellNotifications.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellNotifications.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellOffersPlansNotificationsList.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellOffersPlansNotificationsList.cs index 0d24ff5da76c5..4599693f955e6 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellOffersPlansNotificationsList.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellOffersPlansNotificationsList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellOffersPlansNotificationsResult.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellOffersPlansNotificationsResult.cs index 355220c9a8e8d..db85381715427 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellOffersPlansNotificationsResult.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellOffersPlansNotificationsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellSubscriptions.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellSubscriptions.cs index 3a6cb81df8f84..fc5a03ddf9165 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellSubscriptions.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/StopSellSubscriptions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/SubscriptionsContextList.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/SubscriptionsContextList.cs index c090a3eff8f02..48c125678aa1b 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/SubscriptionsContextList.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/SubscriptionsContextList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/SubscriptionsResponse.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/SubscriptionsResponse.cs index 3d0cf66a4fafc..2a0c47156205d 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/SubscriptionsResponse.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/SubscriptionsResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/TransferOffersContent.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/TransferOffersContent.cs index 16b4ea9449fb9..99544abb4f01d 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/TransferOffersContent.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/TransferOffersContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/TransferOffersResult.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/TransferOffersResult.cs index df768c9feb222..2870d616f010d 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/TransferOffersResult.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/TransferOffersResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Marketplace; namespace Azure.ResourceManager.Marketplace.Models { diff --git a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/Internal/ChangeTrackingList.cs b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..202087aa2ab5d --- /dev/null +++ b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.MarketplaceOrdering +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Internal/ChangeTrackingList.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..3952f7be22712 --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Media +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/AkamaiAccessControl.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/AkamaiAccessControl.cs index f985be8cbc859..e8abad6332486 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/AkamaiAccessControl.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/AkamaiAccessControl.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/AssetContainerSas.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/AssetContainerSas.cs index baf768da75c88..9132d3548774f 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/AssetContainerSas.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/AssetContainerSas.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/CommonEncryptionCbcs.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/CommonEncryptionCbcs.cs index 934eb654b083f..c6331c6735eb7 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/CommonEncryptionCbcs.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/CommonEncryptionCbcs.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/CommonEncryptionCenc.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/CommonEncryptionCenc.cs index b442603918e04..ca074e98b4472 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/CommonEncryptionCenc.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/CommonEncryptionCenc.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ContentKeyPolicyListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ContentKeyPolicyListResult.cs index 38d745b1c0abe..5d75c0ec45726 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ContentKeyPolicyListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ContentKeyPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ContentKeyPolicyTokenRestriction.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ContentKeyPolicyTokenRestriction.cs index c2be1ae96a44a..b8b7be036e280 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ContentKeyPolicyTokenRestriction.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ContentKeyPolicyTokenRestriction.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/EnvelopeEncryption.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/EnvelopeEncryption.cs index 9d80b71425963..7717c54aa6d04 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/EnvelopeEncryption.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/EnvelopeEncryption.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/FilteringOperations.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/FilteringOperations.cs index c6df5d1b30859..428eb8775fafa 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/FilteringOperations.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/FilteringOperations.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/H264Video.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/H264Video.cs index d69dfbbb3d1c2..cfad07385ffff 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/H264Video.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/H264Video.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/H265Video.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/H265Video.cs index 937f7f4c42e86..b135d892d3d97 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/H265Video.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/H265Video.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/IPAccessControl.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/IPAccessControl.cs index dee07089080eb..f247d9b6208ae 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/IPAccessControl.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/IPAccessControl.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/JpgImage.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/JpgImage.cs index 1e12fb506cfb8..2517af22060d1 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/JpgImage.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/JpgImage.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ListContentKeysResponse.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ListContentKeysResponse.cs index b5b865aac5f28..32060df815168 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ListContentKeysResponse.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ListContentKeysResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ListStreamingLocatorsResponse.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ListStreamingLocatorsResponse.cs index e1121e717e72e..fb13ae083bdce 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ListStreamingLocatorsResponse.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/ListStreamingLocatorsResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveEventListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveEventListResult.cs index ad7b3e5b99246..f7c25fd9e26fb 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveEventListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveEventListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveEventPreview.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveEventPreview.cs index e2a0079e4d636..4adf02075b8b8 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveEventPreview.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveEventPreview.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveEventTranscription.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveEventTranscription.cs index aaa1bdf5d351c..72d864864746e 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveEventTranscription.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveEventTranscription.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveOutputListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveOutputListResult.cs index 933197cd8368f..5ddcd9755b2d9 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveOutputListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/LiveOutputListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAccessControl.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAccessControl.cs index 3f70e91a61dc0..caf5414bc2d05 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAccessControl.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAccessControl.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetFilterListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetFilterListResult.cs index 64bc75b348a71..2d321e75120be 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetFilterListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetFilterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetListResult.cs index dbc5a984834a6..4eef54bc94cd4 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetTrackListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetTrackListResult.cs index 5e9ba1f5e80b9..4247dc2790fe5 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetTrackListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaAssetTrackListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobError.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobError.cs index 47745ce06fafd..cdef994313fe9 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobError.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputClip.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputClip.cs index 40e6f1afaa961..16581b10de9af 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputClip.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputClip.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputDefinition.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputDefinition.cs index a952fb8485b65..995595a41ee48 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputDefinition.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputDefinition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputSequence.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputSequence.cs index 21f457685b3b2..d61c982b11b22 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputSequence.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputSequence.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputs.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputs.cs index 51e633a351433..fac75579a7437 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputs.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobInputs.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobListResult.cs index 6425146893e6c..5e25131809b4b 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaJobListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaPrivateEndpointConnectionListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaPrivateEndpointConnectionListResult.cs index bacde542a1fa6..5cd2d5fb81852 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaPrivateEndpointConnectionListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaPrivateLinkResourceListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaPrivateLinkResourceListResult.cs index b6976185a81a3..3e700bd64cfba 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaPrivateLinkResourceListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesAccountFilterListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesAccountFilterListResult.cs index baadd3911ec22..4a5f4abf94194 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesAccountFilterListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesAccountFilterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesAccountListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesAccountListResult.cs index 8b1a4e1b0c580..598cbff4d8253 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesAccountListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaServicesAccountListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaTrackSelection.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaTrackSelection.cs index 065997e3bfea2..b9aee1876d31c 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaTrackSelection.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaTrackSelection.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaTransformListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaTransformListResult.cs index 9238db14ac3e4..c1abe3bdf0417 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaTransformListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MediaTransformListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MultiBitrateFormat.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MultiBitrateFormat.cs index b9a6d8cc5d1a6..0f81b0fdb32df 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MultiBitrateFormat.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/MultiBitrateFormat.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/PngImage.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/PngImage.cs index 555484b4e63dd..40112a45f9dbc 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/PngImage.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/PngImage.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StorageEncryptedAssetDecryptionInfo.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StorageEncryptedAssetDecryptionInfo.cs index 662c3b468fa36..d1b59991b1b64 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StorageEncryptedAssetDecryptionInfo.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StorageEncryptedAssetDecryptionInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingEndpointListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingEndpointListResult.cs index 6ff6e0ecaea49..d177fb31908ff 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingEndpointListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingEndpointListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingEndpointSkuInfoListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingEndpointSkuInfoListResult.cs index 9b0104b57228f..3b90e9ce4eff0 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingEndpointSkuInfoListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingEndpointSkuInfoListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingLocatorContentKey.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingLocatorContentKey.cs index 9c7c4a5d62a1f..8f8ac9bb8e479 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingLocatorContentKey.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingLocatorContentKey.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingLocatorListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingLocatorListResult.cs index 71149494f034a..29b6026345275 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingLocatorListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingLocatorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPath.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPath.cs index 3222dc98df93f..19d764ae84329 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPath.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPath.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPathsResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPathsResult.cs index 0bb1e0ccc10a1..16fb3d1f59a2c 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPathsResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPathsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyContentKey.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyContentKey.cs index e77af0a4cabfb..18bad9b9bd476 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyContentKey.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyContentKey.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyContentKeys.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyContentKeys.cs index 9896976543d41..ef4f56a7ce9b2 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyContentKeys.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyContentKeys.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyListResult.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyListResult.cs index 58a3ace3aece7..560290e30cd62 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyListResult.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/Models/StreamingPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Media; namespace Azure.ResourceManager.Media.Models diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Internal/ChangeTrackingList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..458f1f2b6eb95 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.MetricsAdvisor +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertConfiguration.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertConfiguration.cs index 293d2f1b86a4b..d1d8ad3ed7afb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertConfiguration.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertConfiguration.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs index d93a3b700a7de..daea5128ea5ba 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.cs index f6a85118cd019..3245d463ad595 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationPatch.cs index dbb5b0466d215..2e3bf427b9df8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfiguration.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfiguration.cs index f24e8794a839c..9c8a333800de4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfiguration.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs index 46c0267038f63..53ee77fbbed26 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.cs index cc854bf41d05c..acd9b2e166f5b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationPatch.cs index 5bf9f22788540..45bde971ba0e8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationPatch.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.cs index 57241cfd28610..3119b6cb02785 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetailPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetailPatch.cs index 90eef41d6ca3a..46983d4c41567 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetailPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetailPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedList.Serialization.cs index 939701333294b..849a48b7ca606 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedList.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedList.cs index 933273211b934..b3549ad0b5120 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialList.Serialization.cs index 5b790f2b9adbd..e0a0c8f16277a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialList.Serialization.cs @@ -7,8 +7,8 @@ using System.Collections.Generic; using System.Text.Json; +using Azure.AI.MetricsAdvisor; using Azure.AI.MetricsAdvisor.Administration; -using Azure.Core; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialList.cs index 0ad3b059abdb7..19d346169f194 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialList.cs @@ -6,8 +6,8 @@ #nullable disable using System.Collections.Generic; +using Azure.AI.MetricsAdvisor; using Azure.AI.MetricsAdvisor.Administration; -using Azure.Core; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.cs index 5fba6ee2a30a7..ff5e60e4e9578 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.cs index 6e8244e457ad4..d04dc453f38a9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameterPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameterPatch.cs index 4e9c31bd103e7..b2be1fcc825a6 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameterPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameterPatch.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusList.Serialization.cs index 872137470e248..3a307d2695f25 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusList.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusList.cs index 3ac8bd213e1aa..495a4e7a80274 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookInfoPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookInfoPatch.cs index 7a92d17432ef4..2c8236e9c4d5d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookInfoPatch.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookInfoPatch.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookList.Serialization.cs index 613b022c99bb0..255aebf908293 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookList.Serialization.cs @@ -7,8 +7,8 @@ using System.Collections.Generic; using System.Text.Json; +using Azure.AI.MetricsAdvisor; using Azure.AI.MetricsAdvisor.Administration; -using Azure.Core; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookList.cs index a112a1b8f8202..cbc0c07d2d632 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookList.cs @@ -6,8 +6,8 @@ #nullable disable using System.Collections.Generic; +using Azure.AI.MetricsAdvisor; using Azure.AI.MetricsAdvisor.Administration; -using Azure.Core; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusList.Serialization.cs index 009e81ff59e1a..dc3dffdb05b9a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusList.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusList.cs index c875cea6afbf5..bcb5bc19b0013 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs index 2d6a41208eae4..8cf4278d5a3c7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.cs index e39e290393b68..c128a6fc8e961 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionList.Serialization.cs index ef20a5513d5ba..92030cb6e9bac 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionList.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionList.cs index 453d05240d8ea..adf9da1b0695f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackList.Serialization.cs index 915577f528661..706d5e7832f3e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackList.Serialization.cs @@ -8,7 +8,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.AI.MetricsAdvisor; -using Azure.Core; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackList.cs index de31f82ff75f6..aa906e87095d6 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackList.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using Azure.AI.MetricsAdvisor; -using Azure.Core; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesList.Serialization.cs index 7d68ac984813c..adabb402d8adf 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesList.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesList.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesList.cs index 415ce05511051..37f140909599c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesList.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.MetricsAdvisor; namespace Azure.AI.MetricsAdvisor.Models { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/NotificationHook.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/NotificationHook.cs index c4eb7f19ed38f..b2161952589b7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/NotificationHook.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/NotificationHook.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; +using Azure.AI.MetricsAdvisor; using Azure.AI.MetricsAdvisor.Models; -using Azure.Core; namespace Azure.AI.MetricsAdvisor.Administration { diff --git a/sdk/mixedreality/Azure.MixedReality.Authentication/src/Generated/Internal/ChangeTrackingList.cs b/sdk/mixedreality/Azure.MixedReality.Authentication/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..e8e015fd1530c --- /dev/null +++ b/sdk/mixedreality/Azure.MixedReality.Authentication/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.MixedReality.Authentication +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Internal/ChangeTrackingList.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..1edaa5ce8c6d0 --- /dev/null +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.MixedReality +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/RemoteRenderingAccountListResult.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/RemoteRenderingAccountListResult.cs index bc89c1c6a0cb3..5ec09f69f87ea 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/RemoteRenderingAccountListResult.cs +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/RemoteRenderingAccountListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MixedReality; namespace Azure.ResourceManager.MixedReality.Models diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/SpatialAnchorsAccountListResult.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/SpatialAnchorsAccountListResult.cs index aece6fcf77b28..2c47455d961ee 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/SpatialAnchorsAccountListResult.cs +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/Models/SpatialAnchorsAccountListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MixedReality; namespace Azure.ResourceManager.MixedReality.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Internal/ChangeTrackingList.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..ad7380eb2486c --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.MobileNetwork +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/AttachedDataNetworkListResult.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/AttachedDataNetworkListResult.cs index bd8bc46ec8960..06431037f6a4f 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/AttachedDataNetworkListResult.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/AttachedDataNetworkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/DataNetworkConfiguration.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/DataNetworkConfiguration.cs index 966e86940f47d..5dae464388793 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/DataNetworkConfiguration.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/DataNetworkConfiguration.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.ResourceManager.MobileNetwork; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/DataNetworkListResult.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/DataNetworkListResult.cs index da8179ec604cb..0ee2ce5f1d052 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/DataNetworkListResult.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/DataNetworkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/DiagnosticsPackageListResult.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/DiagnosticsPackageListResult.cs index 5d1543d8206dd..47e7d719041f0 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/DiagnosticsPackageListResult.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/DiagnosticsPackageListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkInstallation.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkInstallation.cs index 2d1583bc684d0..fd2ef5f1d3034 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkInstallation.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkInstallation.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MobileNetwork; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkListResult.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkListResult.cs index 4675b4aa4cd0d..bcf64a633f486 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkListResult.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkPlatformConfiguration.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkPlatformConfiguration.cs index 83eda17aea554..363b1e662e99e 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkPlatformConfiguration.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkPlatformConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MobileNetwork; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkServiceDataFlowTemplate.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkServiceDataFlowTemplate.cs index 93430ab1cc139..03f0614ecf334 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkServiceDataFlowTemplate.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/MobileNetworkServiceDataFlowTemplate.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models { diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCaptureListResult.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCaptureListResult.cs index 5b36ee862fd5c..5911ba29eb176 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCaptureListResult.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCaptureListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreControlPlaneListResult.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreControlPlaneListResult.cs index ada2d20108101..3b650f7d612ae 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreControlPlaneListResult.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreControlPlaneListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreControlPlaneVersionListResult.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreControlPlaneVersionListResult.cs index 209d91df0e662..7f52c1511af1e 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreControlPlaneVersionListResult.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreControlPlaneVersionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreDataPlaneListResult.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreDataPlaneListResult.cs index 01238ba6bd998..34ec91bac8237 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreDataPlaneListResult.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/PacketCoreDataPlaneListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/ServiceListResult.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/ServiceListResult.cs index 6ce79f0df0c28..a1c7d0e47550b 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/ServiceListResult.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/ServiceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimGroupListResult.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimGroupListResult.cs index 5184e4517f5fb..bfa7aa1c5cab4 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimGroupListResult.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimListResult.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimListResult.cs index 7fdf20dbf1ada..775cef8e91dff 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimListResult.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimNameAndEncryptedProperties.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimNameAndEncryptedProperties.cs index 4138bda1b5632..f02b1a7484ba7 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimNameAndEncryptedProperties.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimNameAndEncryptedProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MobileNetwork; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimNameAndProperties.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimNameAndProperties.cs index daa5e741c77e7..7baeadba332b3 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimNameAndProperties.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimNameAndProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MobileNetwork; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimPolicyListResult.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimPolicyListResult.cs index 8aac31ea3a9cd..7c7525c97596a 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimPolicyListResult.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SimPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SiteListResult.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SiteListResult.cs index 575753667f513..6a8df877a1422 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SiteListResult.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SiteListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SliceListResult.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SliceListResult.cs index 18b627ba1606b..5c8bf11444c24 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SliceListResult.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/Models/SliceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MobileNetwork; namespace Azure.ResourceManager.MobileNetwork.Models diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Internal/ChangeTrackingList.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..7b894360b8a6f --- /dev/null +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Monitor.OpenTelemetry.Exporter +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryExceptionDetails.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryExceptionDetails.cs index 255afeecc9faf..9bcc1d9b28abd 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryExceptionDetails.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryExceptionDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.OpenTelemetry.Exporter; namespace Azure.Monitor.OpenTelemetry.Exporter.Models { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TrackResponse.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TrackResponse.Serialization.cs index 73306d56f01ca..0cd7040f39a49 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TrackResponse.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TrackResponse.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Monitor.OpenTelemetry.Exporter; namespace Azure.Monitor.OpenTelemetry.Exporter.Models { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TrackResponse.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TrackResponse.cs index d4173d08777e8..ed3c07b0a5d0c 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TrackResponse.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TrackResponse.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.OpenTelemetry.Exporter; namespace Azure.Monitor.OpenTelemetry.Exporter.Models { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Internal/ChangeTrackingList.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..d3d310bb63c1b --- /dev/null +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Monitor.OpenTelemetry.LiveMetrics +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationError.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationError.cs index f3937a76a67cd..096c6fb74c228 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationError.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationError.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.OpenTelemetry.LiveMetrics; namespace Azure.Monitor.OpenTelemetry.LiveMetrics.Models { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationInfo.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationInfo.Serialization.cs index c84d814b76662..fcc98abc61c95 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationInfo.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationInfo.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Monitor.OpenTelemetry.LiveMetrics; namespace Azure.Monitor.OpenTelemetry.LiveMetrics.Models { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationInfo.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationInfo.cs index e0f49559c4789..95b1aa4f27609 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationInfo.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationInfo.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.OpenTelemetry.LiveMetrics; namespace Azure.Monitor.OpenTelemetry.LiveMetrics.Models { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DerivedMetricInfo.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DerivedMetricInfo.Serialization.cs index 8b9355a58ff42..6fd4c03d16157 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DerivedMetricInfo.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DerivedMetricInfo.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Monitor.OpenTelemetry.LiveMetrics; namespace Azure.Monitor.OpenTelemetry.LiveMetrics.Models { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DerivedMetricInfo.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DerivedMetricInfo.cs index 48ab80e5284ce..1cab3b007c558 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DerivedMetricInfo.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DerivedMetricInfo.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.OpenTelemetry.LiveMetrics; namespace Azure.Monitor.OpenTelemetry.LiveMetrics.Models { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentIngress.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentIngress.cs index c25d65f6b6d56..4e925b82840b4 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentIngress.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentIngress.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.OpenTelemetry.LiveMetrics; namespace Azure.Monitor.OpenTelemetry.LiveMetrics.Models { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentStreamInfo.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentStreamInfo.Serialization.cs index 6adf91244b606..2ab2da3a490e1 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentStreamInfo.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentStreamInfo.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Monitor.OpenTelemetry.LiveMetrics; namespace Azure.Monitor.OpenTelemetry.LiveMetrics.Models { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentStreamInfo.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentStreamInfo.cs index 23ae3a93db73b..b9ca28972254b 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentStreamInfo.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentStreamInfo.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.OpenTelemetry.LiveMetrics; namespace Azure.Monitor.OpenTelemetry.LiveMetrics.Models { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterConjunctionGroupInfo.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterConjunctionGroupInfo.Serialization.cs index 1a6e35fe51fb9..bb0a61800a3d6 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterConjunctionGroupInfo.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterConjunctionGroupInfo.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Monitor.OpenTelemetry.LiveMetrics; namespace Azure.Monitor.OpenTelemetry.LiveMetrics.Models { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterConjunctionGroupInfo.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterConjunctionGroupInfo.cs index 129ea67001577..82748aae30e70 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterConjunctionGroupInfo.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterConjunctionGroupInfo.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.OpenTelemetry.LiveMetrics; namespace Azure.Monitor.OpenTelemetry.LiveMetrics.Models { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/MonitoringDataPoint.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/MonitoringDataPoint.cs index 681eb5324a519..e1f9bad808a5d 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/MonitoringDataPoint.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/MonitoringDataPoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.OpenTelemetry.LiveMetrics; namespace Azure.Monitor.OpenTelemetry.LiveMetrics.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Internal/ChangeTrackingList.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..3984e83e9c016 --- /dev/null +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Monitor.Query +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/AdditionalInfoErrorResponseError.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/AdditionalInfoErrorResponseError.Serialization.cs index b838028507e12..864cf0900d0f9 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/AdditionalInfoErrorResponseError.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/AdditionalInfoErrorResponseError.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/AdditionalInfoErrorResponseError.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/AdditionalInfoErrorResponseError.cs index 17b0f3d6b3655..8f592e25724b4 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/AdditionalInfoErrorResponseError.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/AdditionalInfoErrorResponseError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; 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 7ce53b00ffb07..e5c94b33d0a02 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 @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchResponse.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchResponse.cs index 1fd7a559cdace..16e56aceed44e 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchResponse.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchResponse.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetail.Serialization.cs index 2ce488bf61772..84cfb15301433 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetail.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetail.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetail.cs index 29c778d12714f..eb108f0548c00 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetail.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetail.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorInfo.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorInfo.Serialization.cs index 2b59680012750..c6201ee63dc48 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorInfo.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorInfo.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Monitor.Query; 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 b89a6c7d62b42..fb4338e6e391f 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorInfo.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataApplicationRelated.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataApplicationRelated.cs index 7b7cf6f7637e1..efde29a37b6f1 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataApplicationRelated.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataApplicationRelated.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataCategoryRelated.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataCategoryRelated.cs index 994e5405ab6a1..a5e65df4f499c 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataCategoryRelated.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataCategoryRelated.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataFunctionRelated.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataFunctionRelated.cs index 1461a73d2b7fe..6b465ae4e1348 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataFunctionRelated.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataFunctionRelated.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataPermissions.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataPermissions.cs index 41d6b27a68bbc..09e3c40f8b973 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataPermissions.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataPermissions.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataPermissionsResourcesItem.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataPermissionsResourcesItem.cs index 534bab697162f..9375fd8abe559 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataPermissionsResourcesItem.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataPermissionsResourcesItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataPermissionsWorkspacesItem.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataPermissionsWorkspacesItem.cs index 44d3e31cacd3b..04b6228f897a8 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataPermissionsWorkspacesItem.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataPermissionsWorkspacesItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataQuery.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataQuery.cs index 137473e762d9a..33ffb98484b87 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataQuery.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataQuery.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; 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 53ea62b84ad64..58122b6e42e1e 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataQueryRelated.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataQueryRelated.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; 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 676f62e6575cd..42fb112075226 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResourceType.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResourceType.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; 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 3b3c85106bc87..b793d8960d5f1 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResourceTypeRelated.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResourceTypeRelated.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResults.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResults.cs index 2ff686c37c52e..07f524cc9972e 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResults.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResults.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataSolutionRelated.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataSolutionRelated.cs index b72919c306147..12a76e4844e67 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataSolutionRelated.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataSolutionRelated.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataTable.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataTable.cs index 13650be3f032b..8f7f8c98b7980 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataTable.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataTable.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataTableRelated.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataTableRelated.cs index 231fbc9c08519..a62bba9a04802 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataTableRelated.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataTableRelated.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataWorkspaceRelated.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataWorkspaceRelated.cs index 56ce05dfc2954..14cdc2e5e89f0 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataWorkspaceRelated.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataWorkspaceRelated.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; 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 f686d58760585..63c8911025ef6 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 @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinition.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinition.cs index 3b6a57a389549..8728efe151f52 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinition.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinition.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricTimeSeriesElement.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricTimeSeriesElement.Serialization.cs index 6fb3dcd8a8fc7..eeb595da01fa6 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricTimeSeriesElement.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricTimeSeriesElement.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricTimeSeriesElement.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricTimeSeriesElement.cs index d971becb63044..6a96ced490547 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricTimeSeriesElement.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricTimeSeriesElement.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsBatchResult.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsBatchResult.Serialization.cs index 492bc1acb6584..f2d8151d5b184 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsBatchResult.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsBatchResult.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsBatchResult.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsBatchResult.cs index 3f5f4b9324893..0cef337df8747 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsBatchResult.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsBatchResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/QueryBody.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/QueryBody.cs index c348a389b0e9d..3e9b34755fd1e 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/QueryBody.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/QueryBody.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ResourceIdList.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ResourceIdList.cs index 523a594d744ad..2502dca018607 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ResourceIdList.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ResourceIdList.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Monitor.Query; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Internal/ChangeTrackingList.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..f270d00e41184 --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Monitor +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActionGroupList.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActionGroupList.cs index d7fc4ef7f2b62..337177a12982a 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActionGroupList.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActionGroupList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActionList.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActionList.cs index bc6b083f418ce..f5dfc6867d7fa 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActionList.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActionList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActivityLogAlertAnyOfOrLeafCondition.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActivityLogAlertAnyOfOrLeafCondition.cs index 8df573793bf6d..1c3d0453cf5c4 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActivityLogAlertAnyOfOrLeafCondition.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ActivityLogAlertAnyOfOrLeafCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleLeafCondition.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleLeafCondition.cs index 987af88be5d60..27bf592f31be6 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleLeafCondition.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleLeafCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleList.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleList.cs index 42c428171a6d5..a0ca334b56675 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleList.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRulePatch.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRulePatch.cs index 2e36f6449f0d6..9af0b4b2f9b10 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRulePatch.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRulePatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleResourceCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleResourceCollection.cs index 11573309f1125..3b6891077bc05 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleResourceCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AlertRuleResourceCollection.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleNotification.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleNotification.cs index 134458ddb0622..8e963d1aa9271 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleNotification.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleNotification.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleSettingPatch.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleSettingPatch.cs index 88392c5869cae..8b830d83d0575 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleSettingPatch.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleSettingPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleSettingPredicativeResult.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleSettingPredicativeResult.cs index dd3f4d1733e5e..be23be51e91ed 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleSettingPredicativeResult.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/AutoscaleSettingPredicativeResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataCollectionRuleBcdrFailoverConfigurationSpec.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataCollectionRuleBcdrFailoverConfigurationSpec.cs index 054e89cda86ab..67735442f4b6c 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataCollectionRuleBcdrFailoverConfigurationSpec.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataCollectionRuleBcdrFailoverConfigurationSpec.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataFlow.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataFlow.cs index 7ac894b3648c1..a9ff62379a5e6 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataFlow.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataFlow.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataSourcesSpec.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataSourcesSpec.cs index d5c54955bff52..4f3fc80602c19 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataSourcesSpec.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataSourcesSpec.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataStreamDeclaration.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataStreamDeclaration.cs index 1c66029ee6f8a..cb0c7680d4170 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataStreamDeclaration.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DataStreamDeclaration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DestinationsSpec.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DestinationsSpec.cs index f42508e05e727..65583b34b9bfd 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DestinationsSpec.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DestinationsSpec.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DiagnosticSettingsCategoryResourceCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DiagnosticSettingsCategoryResourceCollection.cs index 4318337f5a2f7..8a2de7bc48112 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DiagnosticSettingsCategoryResourceCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DiagnosticSettingsCategoryResourceCollection.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DiagnosticSettingsResourceCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DiagnosticSettingsResourceCollection.cs index e7d481ee05124..72226cb32ceb8 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DiagnosticSettingsResourceCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/DiagnosticSettingsResourceCollection.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/EmailNotification.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/EmailNotification.cs index fd4f6141e8530..9ae7de9710bd7 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/EmailNotification.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/EmailNotification.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ExtensionDataSource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ExtensionDataSource.cs index 1262ec023f630..8d2315a93d926 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ExtensionDataSource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ExtensionDataSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/IisLogsDataSource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/IisLogsDataSource.cs index be204946f6a8c..088b194bc31d8 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/IisLogsDataSource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/IisLogsDataSource.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/IncidentListResult.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/IncidentListResult.cs index ffffe4929a5c8..28955605f51bb 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/IncidentListResult.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/IncidentListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/LogProfilePatch.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/LogProfilePatch.cs index 9cabb23e31846..45660ee00a6ba 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/LogProfilePatch.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/LogProfilePatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertMultipleResourceMultipleMetricCriteria.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertMultipleResourceMultipleMetricCriteria.cs index 8065622fbb698..9f0db9ff7b51f 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertMultipleResourceMultipleMetricCriteria.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertMultipleResourceMultipleMetricCriteria.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertPatch.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertPatch.cs index a4715289352db..69b817443c821 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertPatch.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertResourceCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertResourceCollection.cs index 49cf84f3359ac..17ffcfe248d4a 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertResourceCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertResourceCollection.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertSingleResourceMultipleMetricCriteria.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertSingleResourceMultipleMetricCriteria.cs index 4bfc39fea1801..8a6aaf7ccf2f6 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertSingleResourceMultipleMetricCriteria.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertSingleResourceMultipleMetricCriteria.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertStatusCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertStatusCollection.cs index 20f51c3b69c9b..35d377ac41818 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertStatusCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertStatusCollection.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricBaselinesResponse.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricBaselinesResponse.cs index cb21912f830af..23446f5024a0c 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricBaselinesResponse.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricBaselinesResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricTrigger.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricTrigger.cs index 761b60bbfe556..dc170c2f27f52 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricTrigger.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricTrigger.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorMetricDefinition.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorMetricDefinition.cs index 7fcea38e23d9e..3e8491b996eb5 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorMetricDefinition.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorMetricDefinition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateEndpointConnectionListResult.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateEndpointConnectionListResult.cs index f3835d50eb067..01d07299eeee7 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateEndpointConnectionListResult.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkAccessModeSettings.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkAccessModeSettings.cs index 3dc9cd0727ec4..f91c7e7a89440 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkAccessModeSettings.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkAccessModeSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkResourceListResult.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkResourceListResult.cs index 4d38d437443ea..24a4b092c98d3 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkResourceListResult.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorTimeSeriesBaseline.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorTimeSeriesBaseline.cs index e05b541a0ddcb..7fa42c0fef025 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorTimeSeriesBaseline.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorTimeSeriesBaseline.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorTimeSeriesElement.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorTimeSeriesElement.cs index 43d673fe6c73f..e841bd17ebb3b 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorTimeSeriesElement.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorTimeSeriesElement.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorWorkspacePrivateEndpointConnection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorWorkspacePrivateEndpointConnection.cs index 1a70674f04dce..f5c8aaa43137a 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorWorkspacePrivateEndpointConnection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorWorkspacePrivateEndpointConnection.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Monitor; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Monitor.Models diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MultiMetricCriteria.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MultiMetricCriteria.cs index a947edc73e7c8..9088ae56010c3 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MultiMetricCriteria.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MultiMetricCriteria.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/NotificationContent.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/NotificationContent.cs index ce3c99a97e973..84332775ac019 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/NotificationContent.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/NotificationContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/NotificationStatus.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/NotificationStatus.cs index d3eb40d573958..3a9551ae1e22b 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/NotificationStatus.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/NotificationStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/PerfCounterDataSource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/PerfCounterDataSource.cs index 5b11ddd1968de..5cf24196064dd 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/PerfCounterDataSource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/PerfCounterDataSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/PrometheusForwarderDataSource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/PrometheusForwarderDataSource.cs index f8017cb31764d..d755d77137f63 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/PrometheusForwarderDataSource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/PrometheusForwarderDataSource.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/RuleEmailAction.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/RuleEmailAction.cs index cc90e0d08bed4..0bf632c998d0d 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/RuleEmailAction.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/RuleEmailAction.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleActions.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleActions.cs index 9e9345243a1b5..79264d8888d5c 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleActions.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleActions.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleCondition.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleCondition.cs index e8d6a34c90268..6049115e4f2f9 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleCondition.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleCriteria.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleCriteria.cs index a5dfcaa10867e..b59e92da78d16 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleCriteria.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleCriteria.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRulePatch.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRulePatch.cs index cde5862d0dc47..412a6fdacde9a 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRulePatch.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRulePatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleResourceCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleResourceCollection.cs index f2e1b1653db7b..142d70123ca08 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleResourceCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScheduledQueryRuleResourceCollection.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScopedResourceListResult.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScopedResourceListResult.cs index 5674be9ab6e7d..398b8f1c13fdc 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScopedResourceListResult.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/ScopedResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/SyslogDataSource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/SyslogDataSource.cs index 021e10287d719..a5dea959b091d 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/SyslogDataSource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/SyslogDataSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/WindowsEventLogDataSource.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/WindowsEventLogDataSource.cs index 7227ce694a270..c7e64a70ec3ad 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/WindowsEventLogDataSource.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/WindowsEventLogDataSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Monitor; namespace Azure.ResourceManager.Monitor.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Internal/ChangeTrackingList.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..bac0f4860637f --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.MySql +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlAdvisorListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlAdvisorListResult.cs index aa83d15e5aa5c..9d090ed514520 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlAdvisorListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlAdvisorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlConfigurations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlConfigurations.cs index a3d884c532037..ef2a76374ffb4 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlConfigurations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlConfigurations.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlDatabaseListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlDatabaseListResult.cs index 035619714e99d..7e412501f6b4f 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlDatabaseListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlDatabaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlFirewallRuleListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlFirewallRuleListResult.cs index 57ea0f08867a1..d8707a9f32cd5 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlFirewallRuleListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlFirewallRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlLogFileListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlLogFileListResult.cs index 414ff26a53bdc..117a40cc463cd 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlLogFileListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlLogFileListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPerformanceTier.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPerformanceTier.cs index 4c4f7dbdbe4a2..c432ebbc893e8 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPerformanceTier.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPerformanceTier.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPerformanceTierListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPerformanceTierListResult.cs index eaeeddd84524f..b42494b6f8132 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPerformanceTierListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPerformanceTierListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateEndpointConnectionListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateEndpointConnectionListResult.cs index 8814ce98a9da3..c3b13c5378652 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateEndpointConnectionListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateLinkResourceListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateLinkResourceListResult.cs index a247ac25cde71..d55eddaa3215c 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateLinkResourceListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateLinkResourceProperties.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateLinkResourceProperties.cs index ce49f6b775c1f..98e1fb57bd8a4 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateLinkResourceProperties.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlPrivateLinkResourceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlQueryTextListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlQueryTextListResult.cs index 87c7104660391..edade8373661e 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlQueryTextListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlQueryTextListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlRecommendationActionListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlRecommendationActionListResult.cs index 5f23bdd0f06ba..2deac11952e1d 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlRecommendationActionListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlRecommendationActionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerAdministratorListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerAdministratorListResult.cs index eb6b8babf6cae..f82a2999c3a2f 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerAdministratorListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerAdministratorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerKeyListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerKeyListResult.cs index cc50a54e1aec8..e20d7cd512601 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerKeyListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerKeyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerListResult.cs index 3e747cb78f094..a98d2304404e8 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerSecurityAlertPolicyListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerSecurityAlertPolicyListResult.cs index 6684ddd9dc4e0..2265b1a6201cd 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerSecurityAlertPolicyListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlServerSecurityAlertPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlTopQueryStatisticsListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlTopQueryStatisticsListResult.cs index b36277f6fac28..5cecfdba3255b 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlTopQueryStatisticsListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlTopQueryStatisticsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlVirtualNetworkRuleListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlVirtualNetworkRuleListResult.cs index 171c822d6ab2a..22ec4ebaaf589 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlVirtualNetworkRuleListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlVirtualNetworkRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlWaitStatisticsListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlWaitStatisticsListResult.cs index 8ff820a76c24a..a98f7f778310f 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlWaitStatisticsListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/Models/MySqlWaitStatisticsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Custom/HelperSuppressions.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Custom/HelperSuppressions.cs index e73ae3a08c189..706dee59eb2f1 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Custom/HelperSuppressions.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Custom/HelperSuppressions.cs @@ -4,3 +4,4 @@ using Azure.Core; [assembly: CodeGenSuppressType("Azure.ResourceManager.MySql.Optional")] +[assembly: CodeGenSuppressType("Azure.ResourceManager.MySql.ChangeTrackingList")] diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/CapabilitySetsList.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/CapabilitySetsList.cs index 5e12ce883599b..2f6a824791272 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/CapabilitySetsList.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/CapabilitySetsList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; using Azure.ResourceManager.MySql.FlexibleServers; namespace Azure.ResourceManager.MySql.FlexibleServers.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerAadAdministratorListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerAadAdministratorListResult.cs index 5e1bb3c883cf3..201054a43d464 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerAadAdministratorListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerAadAdministratorListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; using Azure.ResourceManager.MySql.FlexibleServers; namespace Azure.ResourceManager.MySql.FlexibleServers.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerBackupListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerBackupListResult.cs index 81fc3934d8c6e..ff1a3b22fff01 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerBackupListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerBackupListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; using Azure.ResourceManager.MySql.FlexibleServers; namespace Azure.ResourceManager.MySql.FlexibleServers.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerCapabilitiesListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerCapabilitiesListResult.cs index 209cd457da041..22b1a048d001f 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerCapabilitiesListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerCapabilitiesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.FlexibleServers.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerCapabilityProperties.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerCapabilityProperties.cs index 876374489bf9c..c18e1b0ee9dd2 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerCapabilityProperties.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerCapabilityProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.FlexibleServers.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurationListForBatchUpdate.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurationListForBatchUpdate.cs index f52c7020546b7..f74f3faaa32e0 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurationListForBatchUpdate.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurationListForBatchUpdate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.FlexibleServers.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurationListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurationListResult.cs index 61b7682965a32..ee324d7cf99ee 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurationListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; using Azure.ResourceManager.MySql.FlexibleServers; namespace Azure.ResourceManager.MySql.FlexibleServers.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurations.cs index 1884502361893..e1fc1ca14e0be 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerConfigurations.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; using Azure.ResourceManager.MySql.FlexibleServers; namespace Azure.ResourceManager.MySql.FlexibleServers.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerDatabaseListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerDatabaseListResult.cs index 45e770d3d54d4..8d15e6405cd80 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerDatabaseListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerDatabaseListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; using Azure.ResourceManager.MySql.FlexibleServers; namespace Azure.ResourceManager.MySql.FlexibleServers.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerEditionCapability.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerEditionCapability.cs index a4bdd841ab10b..67863e928285c 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerEditionCapability.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerEditionCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.FlexibleServers.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerFirewallRuleListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerFirewallRuleListResult.cs index 8e4fa6bd2dc6b..ee1c61228eaf9 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerFirewallRuleListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerFirewallRuleListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; using Azure.ResourceManager.MySql.FlexibleServers; namespace Azure.ResourceManager.MySql.FlexibleServers.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerListResult.cs index f7a07de410c31..e266a5c8914c9 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; using Azure.ResourceManager.MySql.FlexibleServers; namespace Azure.ResourceManager.MySql.FlexibleServers.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerLogFileListResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerLogFileListResult.cs index c198978aa061f..b9383c008c4c4 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerLogFileListResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerLogFileListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.FlexibleServers.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerServerVersionCapability.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerServerVersionCapability.cs index b5acc96622647..179fef37ee321 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerServerVersionCapability.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerServerVersionCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.FlexibleServers.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerVirtualNetworkSubnetUsageResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerVirtualNetworkSubnetUsageResult.cs index 64e6bd6e4ea0a..ca308327e401a 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerVirtualNetworkSubnetUsageResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerVirtualNetworkSubnetUsageResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.FlexibleServers.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServersPrivateEndpointConnection.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServersPrivateEndpointConnection.cs index 06c871180cb5a..580c26a86456a 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServersPrivateEndpointConnection.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServersPrivateEndpointConnection.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.MySql; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.MySql.FlexibleServers.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/OperationStatusResult.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/OperationStatusResult.cs index 24b6645fc0b5f..0b153556706fe 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/OperationStatusResult.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/OperationStatusResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.FlexibleServers.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/ServerEditionCapabilityV2.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/ServerEditionCapabilityV2.cs index f83ccfcd5723d..dd720da3e5900 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/ServerEditionCapabilityV2.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/ServerEditionCapabilityV2.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.FlexibleServers.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/SkuCapabilityV2.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/SkuCapabilityV2.cs index f621a5dc3c67e..ef1a01201950e 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/SkuCapabilityV2.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/SkuCapabilityV2.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.MySql; namespace Azure.ResourceManager.MySql.FlexibleServers.Models { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServerData.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServerData.cs index 83b142ffd94cf..49c77d7d87594 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServerData.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServerData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.MySql; using Azure.ResourceManager.MySql.FlexibleServers.Models; namespace Azure.ResourceManager.MySql.FlexibleServers diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServersCapabilityData.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServersCapabilityData.cs index 43f2e07cb33da..c3758d84585cb 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServersCapabilityData.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/MySqlFlexibleServersCapabilityData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.MySql; using Azure.ResourceManager.MySql.FlexibleServers.Models; namespace Azure.ResourceManager.MySql.FlexibleServers diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Internal/ChangeTrackingList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..38eec69e9967c --- /dev/null +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.NetApp +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupPoliciesList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupPoliciesList.cs index 9c9b1fa0bfc70..41440ecf46177 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupPoliciesList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupPoliciesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupVaultsList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupVaultsList.cs index 5a97f5833d99b..cabaabb5340e1 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupVaultsList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupVaultsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.cs index ad48a56893473..97e0aebf5dd41 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/BackupsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolList.cs index 06e20b40625eb..6fbefac6f8a74 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/CapacityPoolList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.cs index 47d248c28a90b..2e591d0c340c4 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/GetGroupIdListForLdapUserResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplications.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplications.cs index 7e0f0fc648289..e0b02e8f7c7f3 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplications.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/ListReplications.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountActiveDirectory.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountActiveDirectory.cs index 503a5a76ee9dd..63049beacb037 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountActiveDirectory.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountActiveDirectory.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountList.cs index 546b2d0d8897b..971cae75843ec 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountPatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountPatch.cs index ceb38bac8f97b..2d0ce2ebe7f98 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountPatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppAccountPatch.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyPatch.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyPatch.cs index a1138b5df17e0..628c103545d58 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyPatch.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppBackupPolicyPatch.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRegionInfo.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRegionInfo.cs index 2d2cd012223c6..1445298bd5e0d 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRegionInfo.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppRegionInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupMetadata.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupMetadata.cs index 501863d69c92e..405f30214d8ae 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupMetadata.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupMetadata.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.cs index c4d599eb56aeb..775af322bbcc8 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppVolumeGroupVolume.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.cs index 6a9c3ba41cc4b..13ed178cf45f9 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetworkSiblingSet.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.cs index f134a4c5b41ca..b3470952d83be 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NicInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionInfosList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionInfosList.cs index 727e3f745918c..7bf5dc1b12d2a 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionInfosList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/RegionInfosList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPoliciesList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPoliciesList.cs index b84cac075987b..ac740e372d21f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPoliciesList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPoliciesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyVolumeList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyVolumeList.cs index 4a717594ea6f8..08459345e56d9 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyVolumeList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotPolicyVolumeList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotsList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotsList.cs index 14d9d5d873784..2d0b10ecd6bb4 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotsList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SnapshotsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubscriptionQuotaItemList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubscriptionQuotaItemList.cs index fac54751cb805..10c049ad14846 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubscriptionQuotaItemList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubscriptionQuotaItemList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubvolumesList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubvolumesList.cs index e030165fe1c6a..37822840b08e1 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubvolumesList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/SubvolumesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeGroupList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeGroupList.cs index a7090b77a0588..da8c1735487ad 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeGroupList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeGroupList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeList.cs index 21b1ca5596676..0fd48ab35da72 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePatchPropertiesExportPolicy.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePatchPropertiesExportPolicy.cs index 177de266591e6..784ef2e5be4ae 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePatchPropertiesExportPolicy.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePatchPropertiesExportPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePropertiesExportPolicy.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePropertiesExportPolicy.cs index 12bf8f96f9575..27b2507213629 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePropertiesExportPolicy.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumePropertiesExportPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models { diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeQuotaRulesList.cs b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeQuotaRulesList.cs index 36ca332f2e1bb..b6f2b518650c5 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeQuotaRulesList.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/VolumeQuotaRulesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetApp; namespace Azure.ResourceManager.NetApp.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Internal/ChangeTrackingList.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..a876065dc3683 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Network +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveBaseSecurityAdminRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveBaseSecurityAdminRule.cs index c5260b63bdb28..c59ddd7ea8d4c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveBaseSecurityAdminRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveBaseSecurityAdminRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveConfigurationContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveConfigurationContent.cs index 0ff5681908422..0744fa25e4b2b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveConfigurationContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveConfigurationContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveConnectivityConfigurationsListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveConnectivityConfigurationsListResult.cs index 35ff79d18af3f..49b7bed4c5b58 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveConnectivityConfigurationsListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveConnectivityConfigurationsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveDefaultSecurityAdminRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveDefaultSecurityAdminRule.cs index 9bdb839f4643a..06c00a9862268 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveDefaultSecurityAdminRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveDefaultSecurityAdminRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveSecurityAdminRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveSecurityAdminRule.cs index 6ae2ed94fa24d..2c0d619337e42 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveSecurityAdminRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveSecurityAdminRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveSecurityAdminRulesListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveSecurityAdminRulesListResult.cs index e9b1de303649a..1fc75e886cf44 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveSecurityAdminRulesListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ActiveSecurityAdminRulesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpace.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpace.cs index 579598d2658f2..adb5c53866876 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpace.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpace.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AdminRuleGroupListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AdminRuleGroupListResult.cs index a6ba78bed599f..4b5371df190e8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AdminRuleGroupListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AdminRuleGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AdminRuleListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AdminRuleListResult.cs index 1126d0d514395..934ca01885fbd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AdminRuleListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AdminRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayAvailableSslOptionsInfo.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayAvailableSslOptionsInfo.cs index 450d9c53b26a7..d7dde62d4e13a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayAvailableSslOptionsInfo.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayAvailableSslOptionsInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayAvailableSslPredefinedPolicies.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayAvailableSslPredefinedPolicies.cs index 755199fd7f9f7..bdc9609f31778 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayAvailableSslPredefinedPolicies.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayAvailableSslPredefinedPolicies.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayAvailableWafRuleSetsResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayAvailableWafRuleSetsResult.cs index 25c7a5dccaf91..33836088de174 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayAvailableWafRuleSetsResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayAvailableWafRuleSetsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHealth.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHealth.cs index bb70554a0a3bd..d064de79befa0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHealth.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHealth.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHealthHttpSettings.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHealthHttpSettings.cs index ef101a76568d8..aca7caadedb56 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHealthHttpSettings.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHealthHttpSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHealthPool.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHealthPool.cs index e777c2eddca72..d20b354c0d6db 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHealthPool.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHealthPool.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHttpSettings.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHttpSettings.cs index 2624206ca69bc..15bc5a4ed34ee 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHttpSettings.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendHttpSettings.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendSettings.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendSettings.cs index a1fc4b0811614..d9be395184bf1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendSettings.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayBackendSettings.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallDisabledRuleGroup.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallDisabledRuleGroup.cs index 0ed34f3511a32..e6f520ffebaa8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallDisabledRuleGroup.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallDisabledRuleGroup.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallManifestRuleSet.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallManifestRuleSet.cs index 1119b281bf5e0..f3daaacee4419 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallManifestRuleSet.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallManifestRuleSet.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallRuleSet.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallRuleSet.cs index d988ac298e222..777489d9b55bd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallRuleSet.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallRuleSet.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayHttpListener.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayHttpListener.cs index 58f5ba4570de7..75942e1f517c6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayHttpListener.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayHttpListener.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayListResult.cs index 4b010b095a12a..25ac13bff6c49 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayListener.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayListener.cs index 0efd68c338149..c6b54bfb03eef 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayListener.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayListener.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayLoadDistributionPolicy.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayLoadDistributionPolicy.cs index 8c543f2405920..fb702576677bd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayLoadDistributionPolicy.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayLoadDistributionPolicy.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPathRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPathRule.cs index 4b7709a8cede6..827c146b64d39 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPathRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPathRule.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateEndpointConnectionListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateEndpointConnectionListResult.cs index 9a0231d530789..e83838032c0a7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateEndpointConnectionListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateLinkConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateLinkConfiguration.cs index 98319c3b5be1a..aa86d83cf2f68 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateLinkConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateLinkConfiguration.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateLinkResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateLinkResource.cs index 0b168201cd6bf..ea429b94a57f0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateLinkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateLinkResource.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateLinkResourceListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateLinkResourceListResult.cs index d00b33f11d2a1..dc49f617ab436 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateLinkResourceListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayPrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayProbeHealthResponseMatch.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayProbeHealthResponseMatch.cs index 7c30926b3192f..88d79ed719e9c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayProbeHealthResponseMatch.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayProbeHealthResponseMatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRedirectConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRedirectConfiguration.cs index 766e3b345f833..a355f800dd273 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRedirectConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRedirectConfiguration.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRewriteRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRewriteRule.cs index dee8c8e6f299b..e7c311e2a767a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRewriteRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRewriteRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRewriteRuleActionSet.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRewriteRuleActionSet.cs index 4e9f15bbe1ee9..d4832abcf9d2b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRewriteRuleActionSet.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRewriteRuleActionSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRewriteRuleSet.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRewriteRuleSet.cs index c3b4f059556d9..2f65115c974de 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRewriteRuleSet.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayRewriteRuleSet.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySslPolicy.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySslPolicy.cs index 9e1fd9b6d5f71..0e56bfd60bd2f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySslPolicy.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySslPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySslPredefinedPolicy.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySslPredefinedPolicy.cs index adb1415cad298..c4024b3454dfc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySslPredefinedPolicy.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySslPredefinedPolicy.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySslProfile.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySslProfile.cs index f275c2d69c161..c7de84df3479e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySslProfile.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySslProfile.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayUrlPathMap.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayUrlPathMap.cs index 9e54073a6bb53..b1bdac848fd58 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayUrlPathMap.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayUrlPathMap.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayWafDynamicManifestListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayWafDynamicManifestListResult.cs index 42f386719c2a9..6337e728a9b59 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayWafDynamicManifestListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayWafDynamicManifestListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayWebApplicationFirewallConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayWebApplicationFirewallConfiguration.cs index 70beeeefa9174..108732e02477c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayWebApplicationFirewallConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayWebApplicationFirewallConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationRule.cs index bc516038b521a..1ae22d09bda6d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationSecurityGroupListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationSecurityGroupListResult.cs index 737b34435f78c..4a93f856b6161 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationSecurityGroupListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationSecurityGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AuthorizationListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AuthorizationListResult.cs index 24326a89bc026..d15e7f697f294 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AuthorizationListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AuthorizationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AutoApprovedPrivateLinkServicesResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AutoApprovedPrivateLinkServicesResult.cs index 43767347d7f55..db4a2c8b63740 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AutoApprovedPrivateLinkServicesResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AutoApprovedPrivateLinkServicesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableDelegation.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableDelegation.cs index f36bdbe8ae3b4..423dceb974d12 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableDelegation.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableDelegation.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableDelegationsResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableDelegationsResult.cs index 4c4e3a818aad9..e7deea2ee6b2d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableDelegationsResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableDelegationsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailablePrivateEndpointTypesResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailablePrivateEndpointTypesResult.cs index a1bbea3d94d78..d2438480a324a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailablePrivateEndpointTypesResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailablePrivateEndpointTypesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListCity.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListCity.cs index 75a248489e278..0b7f47e4f9108 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListCity.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListCity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListContent.cs index cb1f3d1fecfe3..7e1331f82abc2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListCountry.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListCountry.cs index 471e410910bc9..2b51508cd358c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListCountry.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListCountry.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListState.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListState.cs index c342f50a70204..55bf304b87744 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListState.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableProvidersListState.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableServiceAliasesResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableServiceAliasesResult.cs index 0e6695f387091..b2cdb16444190 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableServiceAliasesResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AvailableServiceAliasesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallApplicationRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallApplicationRule.cs index 3612418401b7e..1051f92560029 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallApplicationRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallApplicationRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallApplicationRuleCollectionData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallApplicationRuleCollectionData.cs index 3ec98d8fa2e97..65727af88fdc8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallApplicationRuleCollectionData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallApplicationRuleCollectionData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallFqdnTagListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallFqdnTagListResult.cs index 9f39e5b29536d..dddc8cc0f04f7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallFqdnTagListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallFqdnTagListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallListResult.cs index 54ba011884d7f..f4b0d82ed3f9d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNatRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNatRule.cs index ff013e93df9f0..a52d6292a76ae 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNatRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNatRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNatRuleCollectionData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNatRuleCollectionData.cs index efea8c7c79280..8cc9f0838db05 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNatRuleCollectionData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNatRuleCollectionData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNetworkRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNetworkRule.cs index 20224e0f18a3c..0ff98d621e8e3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNetworkRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNetworkRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNetworkRuleCollectionData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNetworkRuleCollectionData.cs index a245bad34583e..6a642a3489d93 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNetworkRuleCollectionData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallNetworkRuleCollectionData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureRule.cs index 28bf258be8406..63084f2472dc1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureReachabilityReportContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureReachabilityReportContent.cs index b25973d035967..63b357669024a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureReachabilityReportContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureReachabilityReportContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureReachabilityReportItem.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureReachabilityReportItem.cs index a9c503ef5eac9..9250708e8f2a7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureReachabilityReportItem.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureReachabilityReportItem.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureWebCategoryListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureWebCategoryListResult.cs index 6586b5bf01243..d4d96e3a06ae5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureWebCategoryListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureWebCategoryListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressInboundNatRulePortMappings.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressInboundNatRulePortMappings.cs index ab0696fd20fef..458f08a0ebd33 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressInboundNatRulePortMappings.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressInboundNatRulePortMappings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostListResult.cs index e593c4ef5d4f8..c29aa2ffd47be 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostPropertiesFormatNetworkAcls.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostPropertiesFormatNetworkAcls.cs index ff1135ebd1332..3243d7c1e4f63 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostPropertiesFormatNetworkAcls.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostPropertiesFormatNetworkAcls.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionShareableLinkTokenListContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionShareableLinkTokenListContent.cs index e4bc0c61aa6f9..d89721de4a5f8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionShareableLinkTokenListContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionShareableLinkTokenListContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpCommunity.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpCommunity.cs index a14875e1b6937..582e902c2f5a4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpCommunity.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpCommunity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpPeerStatusListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpPeerStatusListResult.cs index 34c700c08dfde..042e47133b92a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpPeerStatusListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpPeerStatusListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpServiceCommunity.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpServiceCommunity.cs index 4a169b6101f04..88d4c18a52e96 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpServiceCommunity.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpServiceCommunity.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpServiceCommunityListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpServiceCommunityListResult.cs index d9f80efe6c8cf..b48957d4e4e45 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpServiceCommunityListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpServiceCommunityListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpSettings.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpSettings.cs index 0d18c414da890..14a3eca53f478 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpSettings.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BgpSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CloudServiceSwapListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CloudServiceSwapListResult.cs index 0a13691ec49b0..49f6bed5d1e88 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CloudServiceSwapListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CloudServiceSwapListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorCreateOrUpdateContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorCreateOrUpdateContent.cs index 050e7d4b7e38e..0253d18e0811f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorCreateOrUpdateContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorCreateOrUpdateContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorEndpointFilter.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorEndpointFilter.cs index 35ebb063f6ab1..1eb094a59ba31 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorEndpointFilter.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorEndpointFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorEndpointScope.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorEndpointScope.cs index e06a515190010..a1a6faf7774aa 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorEndpointScope.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorEndpointScope.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorHttpConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorHttpConfiguration.cs index 7a2958d029d5a..5c7951ac22b4d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorHttpConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorHttpConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorListResult.cs index 4088178e7a949..477f27173bf56 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorQueryResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorQueryResult.cs index 08480b662c5f6..60c2508f11c80 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorQueryResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionMonitorQueryResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionStateSnapshot.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionStateSnapshot.cs index 0aee7214d7c6f..b6ff38e86cd66 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionStateSnapshot.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectionStateSnapshot.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityConfigurationListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityConfigurationListResult.cs index b1898c79f4889..e378d9ed8ca04 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityConfigurationListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityHopInfo.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityHopInfo.cs index 283f25f3ce68c..1804a6756043f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityHopInfo.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityHopInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityInformation.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityInformation.cs index 625be860829b9..f0892ee304355 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityInformation.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityInformation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityIssueInfo.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityIssueInfo.cs index 3ca7f53ca140e..6c750d8c1643f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityIssueInfo.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ConnectivityIssueInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ContainerNetworkInterface.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ContainerNetworkInterface.cs index 25d0961928051..5e98a7da7b036 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ContainerNetworkInterface.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ContainerNetworkInterface.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ContainerNetworkInterfaceConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ContainerNetworkInterfaceConfiguration.cs index 432cb7843512a..a329621aebd4c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ContainerNetworkInterfaceConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ContainerNetworkInterfaceConfiguration.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CrossTenantScopes.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CrossTenantScopes.cs index 1a6780d5765d1..51932deacdcae 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CrossTenantScopes.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CrossTenantScopes.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CustomDnsConfigProperties.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CustomDnsConfigProperties.cs index cacec1e38d7eb..2ac87b2ea1117 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CustomDnsConfigProperties.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CustomDnsConfigProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CustomIPPrefixListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CustomIPPrefixListResult.cs index a661b17ed26ee..d5bec5b45946a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CustomIPPrefixListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/CustomIPPrefixListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DdosProtectionPlanListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DdosProtectionPlanListResult.cs index 94709d04ff5f8..3288ae266a6d3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DdosProtectionPlanListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DdosProtectionPlanListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DhcpOptions.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DhcpOptions.cs index e74a16d63dc41..995ee672cdb6d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DhcpOptions.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DhcpOptions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DnsSettings.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DnsSettings.cs index 484f05af14445..bb6632df242a3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DnsSettings.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DnsSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DscpConfigurationListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DscpConfigurationListResult.cs index 1b02b7d1de95a..a90a565d3d149 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DscpConfigurationListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DscpConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DscpQosDefinition.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DscpQosDefinition.cs index 5fd2963831158..736d49f354487 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DscpQosDefinition.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/DscpQosDefinition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveBaseSecurityAdminRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveBaseSecurityAdminRule.cs index d0e8a87e45ec8..a919a5dda775f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveBaseSecurityAdminRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveBaseSecurityAdminRule.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveConnectivityConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveConnectivityConfiguration.cs index c0cd97239430e..0a1665503f01f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveConnectivityConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveConnectivityConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveDefaultSecurityAdminRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveDefaultSecurityAdminRule.cs index 6224df7221b5a..fb3f16d82fe05 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveDefaultSecurityAdminRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveDefaultSecurityAdminRule.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroup.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroup.cs index 98fea2e676346..1c41f53d19bd8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroup.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroup.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroupListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroupListResult.cs index becd3660ec533..143003a39e57b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroupListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroupListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityRule.cs index 7f573ba001a68..2b656b87133ce 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRoute.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRoute.cs index 0377ba987c608..f4f52bfc79b7f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRoute.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRoute.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteListResult.cs index b293de1d8d758..71fb75cdca233 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRouteList.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRouteList.cs index 629be0ba1f7ab..efeafa236729f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRouteList.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRouteList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveSecurityAdminRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveSecurityAdminRule.cs index 7db8692ddd0d9..1a89370193c41 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveSecurityAdminRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveSecurityAdminRule.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EndpointServicesListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EndpointServicesListResult.cs index d13cf0c9fb252..a94dca8390458 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EndpointServicesListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EndpointServicesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EvaluatedNetworkSecurityGroup.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EvaluatedNetworkSecurityGroup.cs index 9c104e3be96af..1b0aa3cc4ba0f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EvaluatedNetworkSecurityGroup.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EvaluatedNetworkSecurityGroup.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExclusionManagedRuleGroup.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExclusionManagedRuleGroup.cs index 108339a842af6..8a9f6994ba3e0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExclusionManagedRuleGroup.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExclusionManagedRuleGroup.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExclusionManagedRuleSet.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExclusionManagedRuleSet.cs index e75a6532579db..9fda35a6caf74 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExclusionManagedRuleSet.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExclusionManagedRuleSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitConnectionListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitConnectionListResult.cs index b3ad5b17d5214..a9e5c46019dfb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitConnectionListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitListResult.cs index cff56ea4d3cd6..0facc1ffc521c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitPeeringConfig.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitPeeringConfig.cs index cb08edd6aba77..ad401f0bb70b4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitPeeringConfig.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitPeeringConfig.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitPeeringListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitPeeringListResult.cs index 6e319759841d0..671e908509ee2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitPeeringListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitPeeringListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitsArpTableListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitsArpTableListResult.cs index 78ea9826ed0a6..128e1b525a615 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitsArpTableListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitsArpTableListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitsRoutesTableListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitsRoutesTableListResult.cs index 589f65d02b9db..bad1e776f1c43 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitsRoutesTableListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitsRoutesTableListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitsRoutesTableSummaryListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitsRoutesTableSummaryListResult.cs index f0671a33f3eee..972eda521bccc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitsRoutesTableSummaryListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCircuitsRoutesTableSummaryListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteConnectionList.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteConnectionList.cs index f65bcfd5f5e07..0cc6330ece7fb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteConnectionList.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteConnectionList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionListResult.cs index 04d65103d4c7a..9ea7fb3b51907 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionPeeringList.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionPeeringList.cs index c87c84a315cb6..21fe795e0bdad 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionPeeringList.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionPeeringList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionsRoutesTableSummaryListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionsRoutesTableSummaryListResult.cs index 34818fc2cc183..fe7af0762d9e5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionsRoutesTableSummaryListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteCrossConnectionsRoutesTableSummaryListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteGatewayList.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteGatewayList.cs index 332d940432546..ae6dcf9f548ed 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteGatewayList.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteGatewayList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteLinkListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteLinkListResult.cs index 2dc291af27633..01f4122b1f791 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteLinkListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteLinkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortAuthorizationListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortAuthorizationListResult.cs index 376a5de8e472c..129b8e3c075e1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortAuthorizationListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortAuthorizationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortListResult.cs index f70bb2d1c5da5..06a8f58b5fb4d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortsLocationListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortsLocationListResult.cs index 1197459e7c0c9..2d34216fb5262 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortsLocationListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRoutePortsLocationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteProviderPortListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteProviderPortListResult.cs index 5dfeb2b88068c..ba96f8cdcbdc7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteProviderPortListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteProviderPortListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteServiceProvider.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteServiceProvider.cs index ba6846f785443..6f88cca2bc056 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteServiceProvider.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteServiceProvider.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteServiceProviderListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteServiceProviderListResult.cs index 028ab925d121d..1ccc6008c3801 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteServiceProviderListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteServiceProviderListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPacketCaptureContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPacketCaptureContent.cs index 8b41f4175bc32..b03d1751b2ba0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPacketCaptureContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPacketCaptureContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyFilterRuleCollectionInfo.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyFilterRuleCollectionInfo.cs index 99ace3cdb6684..3f0e80f091783 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyFilterRuleCollectionInfo.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyFilterRuleCollectionInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIntrusionDetectionBypassTrafficSpecifications.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIntrusionDetectionBypassTrafficSpecifications.cs index 669d33d99cf78..1cb976f72a68a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIntrusionDetectionBypassTrafficSpecifications.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIntrusionDetectionBypassTrafficSpecifications.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIntrusionDetectionConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIntrusionDetectionConfiguration.cs index 368f393d069f7..907ab853aa1ff 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIntrusionDetectionConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIntrusionDetectionConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyListResult.cs index f45f4fc0b8969..6a7998a082447 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyLogAnalyticsResources.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyLogAnalyticsResources.cs index 907d4267fcf3f..e94f4b592d661 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyLogAnalyticsResources.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyLogAnalyticsResources.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyNatRuleCollectionInfo.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyNatRuleCollectionInfo.cs index b2eef4a4b276b..81e6670dd7cf2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyNatRuleCollectionInfo.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyNatRuleCollectionInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroupListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroupListResult.cs index 2a51650f51703..322d96f6779c8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroupListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicySnat.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicySnat.cs index 289678a17aacd..623be506dc628 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicySnat.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicySnat.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyThreatIntelWhitelist.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyThreatIntelWhitelist.cs index 5521e84bc3cd5..d233d8f5e2f90 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyThreatIntelWhitelist.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyThreatIntelWhitelist.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FlowLogListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FlowLogListResult.cs index eeadd0cd12e63..49a8826461a03 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FlowLogListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FlowLogListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GatewayRouteListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GatewayRouteListResult.cs index e7be8bacbf9e9..38e3932283962 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GatewayRouteListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GatewayRouteListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GetVpnSitesConfigurationContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GetVpnSitesConfigurationContent.cs index ec85b2bde0978..39b754cc4ed9d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GetVpnSitesConfigurationContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GetVpnSitesConfigurationContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HopLink.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HopLink.cs index b46ae51a04cbb..916c2be53b4cd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HopLink.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HopLink.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HubPublicIPAddresses.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HubPublicIPAddresses.cs index 63e392079c8db..c92f21d3055c5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HubPublicIPAddresses.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/HubPublicIPAddresses.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPAddressAvailabilityResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPAddressAvailabilityResult.cs index 55a2e454dcbfb..dea85583d1a6f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPAddressAvailabilityResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPAddressAvailabilityResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPGroupListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPGroupListResult.cs index 231e80c1c1a53..e2c9e5c59952c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPGroupListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsQueryContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsQueryContent.cs index e82db79e9d039..fd9b7fe655e45 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsQueryContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsQueryContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsQueryFilterItems.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsQueryFilterItems.cs index 36a6291674c69..15c91e50f8c00 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsQueryFilterItems.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsQueryFilterItems.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsSignatureListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsSignatureListResult.cs index 9ccb13d1c6d11..fa8ccb96d9ad1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsSignatureListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsSignatureListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsSignatureResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsSignatureResult.cs index 8482f56af8cf6..66b98bd2a3405 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsSignatureResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsSignatureResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/InboundNatRuleListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/InboundNatRuleListResult.cs index 08f3b76d0f0c9..b3d53b6820995 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/InboundNatRuleListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/InboundNatRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/InboundSecurityRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/InboundSecurityRule.cs index 8d024b4ff2755..60d6c7d3ccdd5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/InboundSecurityRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/InboundSecurityRule.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LearnedIPPrefixesListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LearnedIPPrefixesListResult.cs index 2edc8c989d005..9dce252f9b805 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LearnedIPPrefixesListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LearnedIPPrefixesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListHubRouteTablesResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListHubRouteTablesResult.cs index 024303a70ff84..b35cad56dfbdf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListHubRouteTablesResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListHubRouteTablesResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListHubVirtualNetworkConnectionsResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListHubVirtualNetworkConnectionsResult.cs index d9a350071f53b..2c8360b41ac4d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListHubVirtualNetworkConnectionsResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListHubVirtualNetworkConnectionsResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListP2SVpnGatewaysResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListP2SVpnGatewaysResult.cs index 4a5f32c48984c..2885e8ecf372b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListP2SVpnGatewaysResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListP2SVpnGatewaysResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListRouteMapsResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListRouteMapsResult.cs index 8586c12b22697..271ee5a2868b9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListRouteMapsResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListRouteMapsResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListRoutingIntentResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListRoutingIntentResult.cs index fb83bccb6a0e3..5168b35c0558a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListRoutingIntentResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListRoutingIntentResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubBgpConnectionResults.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubBgpConnectionResults.cs index 5bd5d342a879e..f6dacc2cdc889 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubBgpConnectionResults.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubBgpConnectionResults.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubIPConfigurationResults.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubIPConfigurationResults.cs index 0267dcd1b866a..97968e9a368fa 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubIPConfigurationResults.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubIPConfigurationResults.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubRouteTableV2SResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubRouteTableV2SResult.cs index 62c83e523f9c4..adcf82028b210 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubRouteTableV2SResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubRouteTableV2SResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubsResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubsResult.cs index a73f39dc5eb88..e64c496600002 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubsResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualHubsResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualNetworkGatewayNatRulesResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualNetworkGatewayNatRulesResult.cs index dd21308153d8e..5e02e9d531b1d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualNetworkGatewayNatRulesResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualNetworkGatewayNatRulesResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualWANsResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualWANsResult.cs index 0ab2846b5b22d..4a6a303936f37 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualWANsResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVirtualWANsResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnConnectionsResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnConnectionsResult.cs index dadfe709aa6e6..9baf6dfd90b49 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnConnectionsResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnConnectionsResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnGatewayNatRulesResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnGatewayNatRulesResult.cs index 6420fdd8a63be..ac195d4cc837a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnGatewayNatRulesResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnGatewayNatRulesResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnGatewaysResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnGatewaysResult.cs index 9984f4b2c3e34..1b5427990779b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnGatewaysResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnGatewaysResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnServerConfigurationPolicyGroupsResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnServerConfigurationPolicyGroupsResult.cs index 0ff5304cf34ce..21c96c4303d9d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnServerConfigurationPolicyGroupsResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnServerConfigurationPolicyGroupsResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnServerConfigurationsResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnServerConfigurationsResult.cs index 52b82727663b5..228f5896996c7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnServerConfigurationsResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnServerConfigurationsResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnSiteLinkConnectionsResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnSiteLinkConnectionsResult.cs index ae120631e2fdb..217ef91a07e2f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnSiteLinkConnectionsResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnSiteLinkConnectionsResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnSiteLinksResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnSiteLinksResult.cs index 64429f36cba4a..83df012584b02 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnSiteLinksResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnSiteLinksResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnSitesResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnSitesResult.cs index 2423a5c7eb2dd..0a0e85358864b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnSitesResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnSitesResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerBackendAddress.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerBackendAddress.cs index 7a9c9307f25cb..9b1d915538547 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerBackendAddress.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerBackendAddress.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerBackendAddressPoolListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerBackendAddressPoolListResult.cs index 4f555eb97d8ac..346d34dd24a49 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerBackendAddressPoolListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerBackendAddressPoolListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerFrontendIPConfigurationListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerFrontendIPConfigurationListResult.cs index fdabd3dd0f06e..aaabe5ea13441 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerFrontendIPConfigurationListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerFrontendIPConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerListResult.cs index beec2d6563ee8..982a916a2d0e0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerLoadBalancingRuleListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerLoadBalancingRuleListResult.cs index 8c35a9fb0e9c9..9302943a820b7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerLoadBalancingRuleListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerLoadBalancingRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerOutboundRuleListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerOutboundRuleListResult.cs index 2ee096d736b48..12df3c9e2c192 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerOutboundRuleListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerOutboundRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerProbeListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerProbeListResult.cs index 93dba9a9b8758..ae7e6ad70266b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerProbeListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerProbeListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerVipSwapContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerVipSwapContent.cs index b76ab60ba5d05..52aa9c4134c10 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerVipSwapContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerVipSwapContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LocalNetworkGatewayListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LocalNetworkGatewayListResult.cs index 802dc61e282d9..aba7a31bdace5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LocalNetworkGatewayListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LocalNetworkGatewayListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagedRuleGroupOverride.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagedRuleGroupOverride.cs index 24eae91cb978e..07bf78087075d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagedRuleGroupOverride.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagedRuleGroupOverride.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagedRuleSet.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagedRuleSet.cs index 9ea6b4080651f..523c901872ad5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagedRuleSet.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagedRuleSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagedRulesDefinition.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagedRulesDefinition.cs index 11f72250c2b68..64f2ed7a1deb8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagedRulesDefinition.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ManagedRulesDefinition.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MatchCondition.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MatchCondition.cs index 94f13c1cf3328..31f81769607b6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MatchCondition.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MatchCondition.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedContent.cs index a038c7cf94f73..54830b4b47e7d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedResult.cs index 3128ceb23db51..e45da39464dab 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NatGatewayListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NatGatewayListResult.cs index afed013636ae3..f6ddb548baecc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NatGatewayListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NatGatewayListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NatRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NatRule.cs index 733e419319c79..fa652cbfbc6a6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NatRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NatRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationDiagnosticResponse.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationDiagnosticResponse.cs index 1d810b4a9c005..bbfa434d73651 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationDiagnosticResponse.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkConfigurationDiagnosticResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkGroupListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkGroupListResult.cs index e2a1d29b5d9aa..3edb46166a248 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkGroupListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkGroupStaticMemberListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkGroupStaticMemberListResult.cs index c1332eb1297d7..51835e8550792 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkGroupStaticMemberListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkGroupStaticMemberListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkHttpConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkHttpConfiguration.cs index f4a2cf05d22f5..e2fcaca462ed6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkHttpConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkHttpConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkIPAllocationListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkIPAllocationListResult.cs index 3a6d045ae06a5..bef359e0c1f14 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkIPAllocationListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkIPAllocationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkIPConfigurationBgpPeeringAddress.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkIPConfigurationBgpPeeringAddress.cs index ef3a99e13d195..a23667df39662 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkIPConfigurationBgpPeeringAddress.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkIPConfigurationBgpPeeringAddress.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceDnsSettings.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceDnsSettings.cs index 311f5af596fd4..b913c9eb9912f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceDnsSettings.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceDnsSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceIPConfigurationListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceIPConfigurationListResult.cs index 32c2d3aeb349c..da83f02a09744 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceIPConfigurationListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceIPConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties.cs index 3ce5e6b042803..1d2002b43a932 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceListResult.cs index 467387ac37c6a..56e26f1dfeb06 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceLoadBalancerListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceLoadBalancerListResult.cs index 2258a47047786..3514c11599c1e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceLoadBalancerListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceLoadBalancerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceTapConfigurationListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceTapConfigurationListResult.cs index d01c5f6a114bf..0d77f60ffb205 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceTapConfigurationListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceTapConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerCommit.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerCommit.cs index 582f4fb007a60..52d9f010a4566 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerCommit.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerCommit.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerConnectionListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerConnectionListResult.cs index eca32ca0349c4..a09978ca88db2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerConnectionListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerDeploymentStatus.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerDeploymentStatus.cs index e73dacadc849a..6817421bba214 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerDeploymentStatus.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerDeploymentStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerDeploymentStatusContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerDeploymentStatusContent.cs index 0d8fa08d0c272..f3f48d9d854ea 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerDeploymentStatusContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerDeploymentStatusContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerDeploymentStatusListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerDeploymentStatusListResult.cs index 62d6ab8eb988b..9ce450f4b0555 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerDeploymentStatusListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerDeploymentStatusListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerEffectiveConnectivityConfigurationListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerEffectiveConnectivityConfigurationListResult.cs index 874ebf25d4ab4..5e1362c4fc667 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerEffectiveConnectivityConfigurationListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerEffectiveConnectivityConfigurationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerEffectiveSecurityAdminRulesListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerEffectiveSecurityAdminRulesListResult.cs index 052d019a8a13d..32d6339d612ec 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerEffectiveSecurityAdminRulesListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerEffectiveSecurityAdminRulesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerListResult.cs index a57f934e1384d..68d43e36fc2c7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerPropertiesNetworkManagerScopes.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerPropertiesNetworkManagerScopes.cs index 72a26ed487386..3a24dc4723ba3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerPropertiesNetworkManagerScopes.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkManagerPropertiesNetworkManagerScopes.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateEndpointConnectionListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateEndpointConnectionListResult.cs index 9d223ebb33672..0d0a528503ee1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateEndpointConnectionListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateLinkServiceConnection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateLinkServiceConnection.cs index bfc024169a71f..8c0f4ef9c9d07 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateLinkServiceConnection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateLinkServiceConnection.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkProfileListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkProfileListResult.cs index 2559df1680d07..94e6711a3925a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkProfileListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkProfileListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkRule.cs index a807a45af2b10..3ac954fd68d49 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkSecurityGroupListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkSecurityGroupListResult.cs index 7a6799ecd00f7..c0604766e7f5a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkSecurityGroupListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkSecurityGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkSecurityGroupResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkSecurityGroupResult.cs index 75041e9513308..8b44324ffd70d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkSecurityGroupResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkSecurityGroupResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkTopology.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkTopology.cs index 1343fb3eba2a1..9566558b5fc9e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkTopology.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkTopology.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkUsagesListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkUsagesListResult.cs index a4888adfcbf6b..d3a0b0cc973c1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkUsagesListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkUsagesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionList.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionList.cs index 9c5aa5bd48491..7533f66a7ff97 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionList.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceListResult.cs index 5b1a908b50bfb..5b28c9e19b282 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceSiteListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceSiteListResult.cs index 434648beaa011..2fae3df800643 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceSiteListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceSiteListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceSkuListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceSkuListResult.cs index 63251eed6e26d..58c04dbfb8e27 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceSkuListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceSkuListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkWatcherListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkWatcherListResult.cs index d1a81ca2a4553..0cce3f49250f3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkWatcherListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkWatcherListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/OwaspCrsExclusionEntry.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/OwaspCrsExclusionEntry.cs index 8c0dca69ddb1b..7bc430c86204a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/OwaspCrsExclusionEntry.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/OwaspCrsExclusionEntry.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SVpnConnectionHealthContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SVpnConnectionHealthContent.cs index c8382d6c8633f..2edfcbe045eca 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SVpnConnectionHealthContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SVpnConnectionHealthContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SVpnConnectionRequest.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SVpnConnectionRequest.cs index cb10b747a4443..43b6752538a9b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SVpnConnectionRequest.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SVpnConnectionRequest.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureCreateOrUpdateContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureCreateOrUpdateContent.cs index 0f9d908f6da1c..d67680df1e6bc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureCreateOrUpdateContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureCreateOrUpdateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureListResult.cs index c68db91cce9bf..3a700d34063eb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureMachineScope.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureMachineScope.cs index 4991944fd490c..da1bae6185a8b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureMachineScope.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureMachineScope.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureQueryStatusResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureQueryStatusResult.cs index d830b0445e673..e3bead8fd9c54 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureQueryStatusResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PacketCaptureQueryStatusResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PeerExpressRouteCircuitConnectionListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PeerExpressRouteCircuitConnectionListResult.cs index b00ea1fa8ce9a..3207acc999189 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PeerExpressRouteCircuitConnectionListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PeerExpressRouteCircuitConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettingsLogScrubbing.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettingsLogScrubbing.cs index 2c87c7ad195ea..dac943e5fa9df 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettingsLogScrubbing.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettingsLogScrubbing.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySignaturesOverridesForIdpsListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySignaturesOverridesForIdpsListResult.cs index 4ff26b5494423..822b47e04ef9e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySignaturesOverridesForIdpsListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySignaturesOverridesForIdpsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrepareNetworkPoliciesContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrepareNetworkPoliciesContent.cs index a5a57e28dcce0..8afa1745ad434 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrepareNetworkPoliciesContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrepareNetworkPoliciesContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneConfig.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneConfig.cs index 14a54cc4753e8..36d518e98f692 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneConfig.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneConfig.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneGroupListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneGroupListResult.cs index f24cbb5c5f639..029e5fd89d850 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneGroupListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateEndpointListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateEndpointListResult.cs index 3d7278337e293..5be8d01c531c6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateEndpointListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateEndpointListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceListResult.cs index c511d25b4416e..6e42ec07f8ae3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PropagatedRouteTable.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PropagatedRouteTable.cs index 37b0c3f2d4ab0..ffb34a3b66f72 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PropagatedRouteTable.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PropagatedRouteTable.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressListResult.cs index 4470e1206b045..0f1b9c0241d57 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPPrefixListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPPrefixListResult.cs index 250bf85b2c7b0..c4e3b9d3c1204 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPPrefixListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPPrefixListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RecordSet.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RecordSet.cs index 53846f9ba9906..7e602629693dd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RecordSet.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RecordSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ResourceNavigationLinksListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ResourceNavigationLinksListResult.cs index e0783ad5a8daa..bcdcb520f8a8b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ResourceNavigationLinksListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ResourceNavigationLinksListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ResourceSet.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ResourceSet.cs index 5036c6580a271..07708e579d5cd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ResourceSet.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ResourceSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteCriterion.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteCriterion.cs index f4d29d7605329..f95395f9c1d9a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteCriterion.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteCriterion.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteFilterListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteFilterListResult.cs index 359b53a8ab45b..0980f52edb24a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteFilterListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteFilterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteFilterRuleListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteFilterRuleListResult.cs index c76afdb873b19..3d35d14b8a76d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteFilterRuleListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteFilterRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteListResult.cs index 8f2d9e50c4f5f..85f24b233cfd1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapAction.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapAction.cs index 6fcd8beb32492..e00271cb9dd2e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapAction.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapAction.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapActionParameter.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapActionParameter.cs index fc8299fdf7b88..920ee7c612edb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapActionParameter.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapActionParameter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapRule.cs index 18ce843ea45fd..a96cd84ba7fc3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteMapRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteTableListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteTableListResult.cs index 67ec7c7c687d0..664de5e484fc9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteTableListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RouteTableListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ScopeConnectionListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ScopeConnectionListResult.cs index dfea2b5ccf7df..aef48abedee35 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ScopeConnectionListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ScopeConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityAdminConfigurationListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityAdminConfigurationListResult.cs index 1946f8bffab31..8c5aeb86fccb0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityAdminConfigurationListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityAdminConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityGroupViewResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityGroupViewResult.cs index fbcc1c54ae58f..fef412db8987c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityGroupViewResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityGroupViewResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityPartnerProviderListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityPartnerProviderListResult.cs index e83f06ba12094..432989a06f869 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityPartnerProviderListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityPartnerProviderListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityRuleAssociations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityRuleAssociations.cs index 9a1bf364df767..169f86eec2ac6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityRuleAssociations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityRuleAssociations.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityRuleListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityRuleListResult.cs index 9a76de4d86ab8..4916cf4bbdb14 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityRuleListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceAssociationLink.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceAssociationLink.cs index 8f7c063576544..275950bbf5912 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceAssociationLink.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceAssociationLink.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceAssociationLinksListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceAssociationLinksListResult.cs index 0bbf4f409c4bd..d7e3d556e120b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceAssociationLinksListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceAssociationLinksListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceDelegation.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceDelegation.cs index 1cd70028b1274..1eb3151b70a84 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceDelegation.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceDelegation.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointPolicyDefinitionListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointPolicyDefinitionListResult.cs index 6f769ecb178ea..f2db31191db78 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointPolicyDefinitionListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointPolicyDefinitionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointPolicyListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointPolicyListResult.cs index e1725bbd1a0c6..ff16b79787d10 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointPolicyListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointProperties.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointProperties.cs index 14a099541805a..df524de8fb4e5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointProperties.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceEndpointProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceTagInformationListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceTagInformationListResult.cs index 57f3f9c4fb62b..14d7ba8a46291 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceTagInformationListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceTagInformationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceTagInformationPropertiesFormat.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceTagInformationPropertiesFormat.cs index ae4a42873a727..63274d7337db4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceTagInformationPropertiesFormat.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceTagInformationPropertiesFormat.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceTagsListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceTagsListResult.cs index cc5cde3767e15..15165aad64f91 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceTagsListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ServiceTagsListResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SignatureOverridesFilterValuesResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SignatureOverridesFilterValuesResult.cs index 00ab9e213bab8..338d7597efd6d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SignatureOverridesFilterValuesResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SignatureOverridesFilterValuesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticRoute.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticRoute.cs index 8055f29fe4e9b..38aeb42b2003a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticRoute.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticRoute.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SubnetListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SubnetListResult.cs index d9999bc2ef4b0..618aac03931e3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SubnetListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SubnetListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/TopologyResourceInfo.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/TopologyResourceInfo.cs index 759f94d761220..30b6f3921a6de 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/TopologyResourceInfo.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/TopologyResourceInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/TroubleshootingDetails.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/TroubleshootingDetails.cs index 1536328e75aa5..33ebbf3c00c9e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/TroubleshootingDetails.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/TroubleshootingDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/TroubleshootingResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/TroubleshootingResult.cs index 3cb6af45720ba..871b1b20b913a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/TroubleshootingResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/TroubleshootingResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRoute.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRoute.cs index f286a9395c7dc..456f1ff1d535f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRoute.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRoute.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRouteList.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRouteList.cs index 81d16d48ca971..da65f7d0c8542 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRouteList.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRouteList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRoute.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRoute.cs index ea0b3ab6d0566..5da2a1c52bbb0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRoute.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRoute.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRouteTable.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRouteTable.cs index 1c37015f7030c..18216c02878fb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRouteTable.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRouteTable.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRouteV2.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRouteV2.cs index ebda5b356b5a8..997d51b251c2b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRouteV2.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRouteV2.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayConnectionListEntity.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayConnectionListEntity.cs index 3a6d2487c88e1..ba6cda7bb57d7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayConnectionListEntity.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayConnectionListEntity.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayConnectionListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayConnectionListResult.cs index a89a65a43596d..1b4bf08f0c0d1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayConnectionListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayListConnectionsResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayListConnectionsResult.cs index ecdbc0ed7ad5b..c73bdc47c94ae 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayListConnectionsResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayListConnectionsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayListResult.cs index 47043b68fba62..98cc75e0345ca 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayPolicyGroup.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayPolicyGroup.cs index cf44a64f18007..84a10f7c808bc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayPolicyGroup.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkGatewayPolicyGroup.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkListResult.cs index dc7e2529bd32f..8d9e359b2ebb9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkListUsageResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkListUsageResult.cs index 6b2b4b5ec56cc..fb9faa0d6f781 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkListUsageResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkListUsageResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkPeeringListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkPeeringListResult.cs index 87ae3529a695c..cf5ae949c8269 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkPeeringListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkPeeringListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkTapListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkTapListResult.cs index 3f5ad368aa2e5..ca50c330403e0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkTapListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualNetworkTapListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualRouterListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualRouterListResult.cs index e46b7221e3ec0..e5541d7345826 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualRouterListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualRouterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualRouterPeeringListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualRouterPeeringListResult.cs index f4ecc36328b77..db17b6c995b62 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualRouterPeeringListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualRouterPeeringListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualWanSecurityProviders.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualWanSecurityProviders.cs index f350cd1c544ef..529e11e91638b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualWanSecurityProviders.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualWanSecurityProviders.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VnetRoute.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VnetRoute.cs index da51c7e90436d..df6140780eeaf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VnetRoute.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VnetRoute.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VngClientConnectionConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VngClientConnectionConfiguration.cs index 28bd120b01d92..a7dd6d9abfe05 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VngClientConnectionConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VngClientConnectionConfiguration.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.Network; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConfiguration.cs index 4c9a2913edf85..bd497e44ba0d0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConnectionHealth.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConnectionHealth.cs index ff2181eefa1e1..5e0c7b53081d4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConnectionHealth.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConnectionHealth.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConnectionHealthDetailListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConnectionHealthDetailListResult.cs index 6496bcc46cea3..bc1c1395746bf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConnectionHealthDetailListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConnectionHealthDetailListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientContent.cs index 2604bd29fec64..3d0f6a7992cf0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnConnectionPacketCaptureStartContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnConnectionPacketCaptureStartContent.cs index 3c225d1d72a71..34f0ad5dcfca7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnConnectionPacketCaptureStartContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnConnectionPacketCaptureStartContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnConnectionPacketCaptureStopContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnConnectionPacketCaptureStopContent.cs index d05aa9a7736bf..37dade809863f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnConnectionPacketCaptureStopContent.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnConnectionPacketCaptureStopContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnServerConfigurationsResponse.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnServerConfigurationsResponse.cs index 51ecaaf996f0e..1bb8146a44d35 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnServerConfigurationsResponse.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnServerConfigurationsResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs index f589b56852aee..2a5c5b6bbd9e9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure; -using Azure.Core; +using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallPolicyListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallPolicyListResult.cs index 27e0cce04dad3..b8991b8e00fb7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallPolicyListResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Network; namespace Azure.ResourceManager.Network.Models diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Internal/ChangeTrackingList.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..e42144982f8f8 --- /dev/null +++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.NetworkAnalytics +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductPatch.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductPatch.cs index c20a2783a23fe..6a80c6693b1d9 100644 --- a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductPatch.cs +++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductPatch.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.NetworkAnalytics; namespace Azure.ResourceManager.NetworkAnalytics.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Internal/ChangeTrackingList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..1dc8d291b4688 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.NetworkCloud +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AdministratorConfiguration.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AdministratorConfiguration.cs index 749b314e15378..73ede3a8b22c1 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AdministratorConfiguration.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AdministratorConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AgentPoolList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AgentPoolList.cs index 48f49c3bda8a6..ffc1c9957fb3f 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AgentPoolList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AgentPoolList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AttachedNetworkConfiguration.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AttachedNetworkConfiguration.cs index 9752a4690a730..6c94fb508cd71 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AttachedNetworkConfiguration.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/AttachedNetworkConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineCommandSpecification.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineCommandSpecification.cs index b40d6dc5cb1b4..9a3062099b185 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineCommandSpecification.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineCommandSpecification.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineKeySetList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineKeySetList.cs index aaa11db42852c..d0a3017b6bc09 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineKeySetList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineKeySetList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineList.cs index 9f4db66adab6e..d4abe9c2061ea 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunCommandContent.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunCommandContent.cs index f31e28a0f483e..7840589b81b32 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunCommandContent.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BareMetalMachineRunCommandContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BgpAdvertisement.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BgpAdvertisement.cs index 594bfa90f551f..af7bccdea3666 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BgpAdvertisement.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BgpAdvertisement.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BgpServiceLoadBalancerConfiguration.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BgpServiceLoadBalancerConfiguration.cs index 2fdb7e27160f6..6eed8cf05b17b 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BgpServiceLoadBalancerConfiguration.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BgpServiceLoadBalancerConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BmcKeySetList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BmcKeySetList.cs index d88173f081d1b..9c954dde619fb 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BmcKeySetList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/BmcKeySetList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkList.cs index a7b8697c2a3dc..c0da976e6ca74 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/CloudServicesNetworkList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterDeployContent.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterDeployContent.cs index 1632162437c7c..144fa9a0f6dc4 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterDeployContent.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterDeployContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterList.cs index d69fade4aacac..8b3a9eaaef40f 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterManagerList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterManagerList.cs index 0f8f570893440..3a27000a953f5 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterManagerList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterManagerList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterMetricsConfigurationList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterMetricsConfigurationList.cs index 35c1b4fb601b3..32b64b5473e39 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterMetricsConfigurationList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ClusterMetricsConfigurationList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ConsoleList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ConsoleList.cs index d9fb72156f4f7..5bed41966b20a 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ConsoleList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ConsoleList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ControlPlaneNodeConfiguration.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ControlPlaneNodeConfiguration.cs index 97b3dcdac7b50..6e89a7a9aef7e 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ControlPlaneNodeConfiguration.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/ControlPlaneNodeConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/HardwareInventory.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/HardwareInventory.cs index c3f121a21e765..e14cf1ccd4b5d 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/HardwareInventory.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/HardwareInventory.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/InitialAgentPoolConfiguration.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/InitialAgentPoolConfiguration.cs index 5bbf9b9048d5f..f9549102256fe 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/InitialAgentPoolConfiguration.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/InitialAgentPoolConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/KubernetesClusterList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/KubernetesClusterList.cs index 65fa6bf3d7fea..aa20159a08e18 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/KubernetesClusterList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/KubernetesClusterList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/KubernetesClusterNetworkConfiguration.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/KubernetesClusterNetworkConfiguration.cs index 95cbeea529585..d34f88ee9d8c6 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/KubernetesClusterNetworkConfiguration.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/KubernetesClusterNetworkConfiguration.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Net; using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/KubernetesClusterNode.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/KubernetesClusterNode.cs index cf97cab182d7c..8d9fe55033ebe 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/KubernetesClusterNode.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/KubernetesClusterNode.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/L2NetworkList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/L2NetworkList.cs index a37d861d048bb..452bf221406f9 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/L2NetworkList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/L2NetworkList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/L3NetworkList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/L3NetworkList.cs index 46dc0e6362517..98f458899640e 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/L3NetworkList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/L3NetworkList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/MachineSkuSlot.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/MachineSkuSlot.cs index 6902c10ec104c..f4cc0d0b43714 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/MachineSkuSlot.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/MachineSkuSlot.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBareMetalMachineKeySetPatch.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBareMetalMachineKeySetPatch.cs index 456f3d7401b77..03c4d6453dd22 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBareMetalMachineKeySetPatch.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBareMetalMachineKeySetPatch.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Net; using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBmcKeySetPatch.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBmcKeySetPatch.cs index d2d1a4cc90572..2f83b9b398544 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBmcKeySetPatch.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudBmcKeySetPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkPatch.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkPatch.cs index e05c1b93e65c7..f6b8592089945 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkPatch.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudCloudServicesNetworkPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterMetricsConfigurationPatch.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterMetricsConfigurationPatch.cs index 2d0cb1d5d9339..5796c8bd3dce8 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterMetricsConfigurationPatch.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterMetricsConfigurationPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterPatch.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterPatch.cs index cd66bf51959a4..bc018b62306a2 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterPatch.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudClusterPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOperationStatusResult.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOperationStatusResult.cs index f1838e52c1029..406d6048c86ef 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOperationStatusResult.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOperationStatusResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudRackDefinition.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudRackDefinition.cs index 24a8d299680b8..2b317de5d0b16 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudRackDefinition.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudRackDefinition.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageProfile.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageProfile.cs index 7410be888fb02..f8fd4e64c9c35 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageProfile.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageProfile.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/RackList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/RackList.cs index 26dbb533a4373..cafb5d2b74d80 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/RackList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/RackList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/RackSkuList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/RackSkuList.cs index c002a3f4b9e80..13a87fe5fb0fd 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/RackSkuList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/RackSkuList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceEnableRemoteVendorManagementContent.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceEnableRemoteVendorManagementContent.cs index ee729784f563d..3d1086909c3d0 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceEnableRemoteVendorManagementContent.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceEnableRemoteVendorManagementContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceList.cs index 8ce9cfa536153..a120c6bf57ad8 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/StorageApplianceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/TrunkedNetworkList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/TrunkedNetworkList.cs index 8e8c6e9b5b1c5..d76eeed225cd8 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/TrunkedNetworkList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/TrunkedNetworkList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/VirtualMachineList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/VirtualMachineList.cs index d5961076d2766..b4041be968fba 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/VirtualMachineList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/VirtualMachineList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/VolumeList.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/VolumeList.cs index eccb30b6e8762..82c31ae775a8c 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/VolumeList.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/VolumeList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkCloud; namespace Azure.ResourceManager.NetworkCloud.Models diff --git a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Internal/ChangeTrackingList.cs b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..170fe40465263 --- /dev/null +++ b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.NetworkFunction +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/AzureTrafficCollectorListResult.cs b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/AzureTrafficCollectorListResult.cs index 64c26f5faa099..07adf44c6e650 100644 --- a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/AzureTrafficCollectorListResult.cs +++ b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/AzureTrafficCollectorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkFunction; namespace Azure.ResourceManager.NetworkFunction.Models diff --git a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/CollectorPolicyListResult.cs b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/CollectorPolicyListResult.cs index b34c783aa1621..2f49b3f5989e0 100644 --- a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/CollectorPolicyListResult.cs +++ b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/CollectorPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NetworkFunction; namespace Azure.ResourceManager.NetworkFunction.Models diff --git a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/EmissionPoliciesPropertiesFormat.cs b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/EmissionPoliciesPropertiesFormat.cs index a2026a5a8b295..ef050596bc7fe 100644 --- a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/EmissionPoliciesPropertiesFormat.cs +++ b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/EmissionPoliciesPropertiesFormat.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetworkFunction; namespace Azure.ResourceManager.NetworkFunction.Models { diff --git a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/IngestionPolicyPropertiesFormat.cs b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/IngestionPolicyPropertiesFormat.cs index d44902eee666a..5d4e9d899ed57 100644 --- a/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/IngestionPolicyPropertiesFormat.cs +++ b/sdk/networkfunction/Azure.ResourceManager.NetworkFunction/src/Generated/Models/IngestionPolicyPropertiesFormat.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NetworkFunction; namespace Azure.ResourceManager.NetworkFunction.Models { diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Internal/ChangeTrackingList.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..2bdd0252b73ce --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.NewRelicObservability +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesGetContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesGetContent.cs index e7e7f7b2b074b..063fbd740c1cb 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesGetContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesGetContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.NewRelicObservability; namespace Azure.ResourceManager.NewRelicObservability.Models { diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicHostsGetContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicHostsGetContent.cs index 222bab5c518ec..2f712e11d0362 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicHostsGetContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicHostsGetContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.NewRelicObservability; namespace Azure.ResourceManager.NewRelicObservability.Models { diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusContent.cs index 3c8418bededec..cfc64113990e1 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NewRelicObservability; namespace Azure.ResourceManager.NewRelicObservability.Models { diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusResult.cs index 176ecd37a3212..b3af95dc9d9d6 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NewRelicObservability; namespace Azure.ResourceManager.NewRelicObservability.Models { diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLogRules.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLogRules.cs index c8a4ac73d5f55..be68f4a85695a 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLogRules.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLogRules.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NewRelicObservability; namespace Azure.ResourceManager.NewRelicObservability.Models { diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMetricRules.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMetricRules.cs index 7bbad789c949d..8af697935578f 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMetricRules.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMetricRules.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NewRelicObservability; namespace Azure.ResourceManager.NewRelicObservability.Models { diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Internal/ChangeTrackingList.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..89c7aeccc2376 --- /dev/null +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Nginx +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxCertificateListResponse.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxCertificateListResponse.cs index cba9ced067adb..93ffc00027b47 100644 --- a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxCertificateListResponse.cs +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxCertificateListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Nginx; namespace Azure.ResourceManager.Nginx.Models diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationListResponse.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationListResponse.cs index 5cbb626056df0..d5f382474be12 100644 --- a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationListResponse.cs +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Nginx; namespace Azure.ResourceManager.Nginx.Models diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationPackage.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationPackage.cs index e76e07153d6f0..d6dc25dedf291 100644 --- a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationPackage.cs +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationPackage.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Nginx; namespace Azure.ResourceManager.Nginx.Models { diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationProperties.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationProperties.cs index 358228fdb4c25..5d4523f241865 100644 --- a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationProperties.cs +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxConfigurationProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Nginx; namespace Azure.ResourceManager.Nginx.Models { diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxDeploymentListResponse.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxDeploymentListResponse.cs index 0f8c8d2ab9557..209e9efe9a8aa 100644 --- a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxDeploymentListResponse.cs +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxDeploymentListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Nginx; namespace Azure.ResourceManager.Nginx.Models diff --git a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxFrontendIPConfiguration.cs b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxFrontendIPConfiguration.cs index 7e13e169c600c..f1a64e0d650a9 100644 --- a/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxFrontendIPConfiguration.cs +++ b/sdk/nginx/Azure.ResourceManager.Nginx/src/Generated/Models/NginxFrontendIPConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Nginx; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Nginx.Models diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Internal/ChangeTrackingList.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..82bfc9175a1dd --- /dev/null +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.NotificationHubs +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubCreateOrUpdateContent.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubCreateOrUpdateContent.cs index 422c980d70731..d3a2504922b03 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubCreateOrUpdateContent.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubCreateOrUpdateContent.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.NotificationHubs; namespace Azure.ResourceManager.NotificationHubs.Models { diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubListResult.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubListResult.cs index c63462bd73306..3dd36af817034 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubListResult.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NotificationHubs; namespace Azure.ResourceManager.NotificationHubs.Models diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubNamespaceListResult.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubNamespaceListResult.cs index bd8b5816b5d49..1dcf4d1d163d9 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubNamespaceListResult.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubNamespaceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NotificationHubs; namespace Azure.ResourceManager.NotificationHubs.Models diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubPatch.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubPatch.cs index 01244696adad1..3b50181bedef1 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubPatch.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/NotificationHubPatch.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.NotificationHubs; namespace Azure.ResourceManager.NotificationHubs.Models { diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/SharedAccessAuthorizationRuleListResult.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/SharedAccessAuthorizationRuleListResult.cs index bdbc719dfe444..48c8294359e13 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/SharedAccessAuthorizationRuleListResult.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/SharedAccessAuthorizationRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.NotificationHubs; namespace Azure.ResourceManager.NotificationHubs.Models diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/SharedAccessAuthorizationRuleProperties.cs b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/SharedAccessAuthorizationRuleProperties.cs index e9e0c40833154..18de934a51c7f 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/SharedAccessAuthorizationRuleProperties.cs +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Generated/Models/SharedAccessAuthorizationRuleProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.NotificationHubs; namespace Azure.ResourceManager.NotificationHubs.Models { diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Internal/ChangeTrackingList.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..03eacacaf040b --- /dev/null +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.MixedReality.ObjectAnchors.Conversion +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionConfiguration.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionConfiguration.cs index bb5e8990eb7cb..dda3319a28ced 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionConfiguration.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionConfiguration.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.MixedReality.ObjectAnchors.Conversion.Models; namespace Azure.MixedReality.ObjectAnchors.Conversion diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorDetail.Serialization.cs index eaac0d03fad4e..b6dda9fadf53e 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorDetail.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.MixedReality.ObjectAnchors.Conversion; namespace Azure.MixedReality.ObjectAnchors.Conversion.Models { diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorDetail.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorDetail.cs index eb2306544e2ef..4a1bda52008e4 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorDetail.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorDetail.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.MixedReality.ObjectAnchors.Conversion; namespace Azure.MixedReality.ObjectAnchors.Conversion.Models { diff --git a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/Internal/ChangeTrackingList.cs b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..0f3e5454edb0b --- /dev/null +++ b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.OpenAI.Assistants +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalAssistantDeletionStatusObject.cs b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalAssistantDeletionStatusObject.cs index 0a206a9567cd7..7359266165cd2 100644 --- a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalAssistantDeletionStatusObject.cs +++ b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalAssistantDeletionStatusObject.cs @@ -11,7 +11,7 @@ namespace Azure.AI.OpenAI.Assistants { /// The InternalAssistantDeletionStatus_object. - internal readonly partial struct InternalAssistantDeletionStatusObject : IEquatable + public readonly partial struct InternalAssistantDeletionStatusObject : IEquatable { private readonly string _value; diff --git a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalAssistantFileDeletionStatusObject.cs b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalAssistantFileDeletionStatusObject.cs index 45976bbd09370..01ef618231fef 100644 --- a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalAssistantFileDeletionStatusObject.cs +++ b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalAssistantFileDeletionStatusObject.cs @@ -11,7 +11,7 @@ namespace Azure.AI.OpenAI.Assistants { /// The InternalAssistantFileDeletionStatus_object. - internal readonly partial struct InternalAssistantFileDeletionStatusObject : IEquatable + public readonly partial struct InternalAssistantFileDeletionStatusObject : IEquatable { private readonly string _value; diff --git a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalFileDeletionStatusObject.cs b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalFileDeletionStatusObject.cs index 867dfbf1583bb..aee444c1aac24 100644 --- a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalFileDeletionStatusObject.cs +++ b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalFileDeletionStatusObject.cs @@ -11,7 +11,7 @@ namespace Azure.AI.OpenAI.Assistants { /// The InternalFileDeletionStatus_object. - internal readonly partial struct InternalFileDeletionStatusObject : IEquatable + public readonly partial struct InternalFileDeletionStatusObject : IEquatable { private readonly string _value; diff --git a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalFileListResponseObject.cs b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalFileListResponseObject.cs index 4690ffa145395..c189c9c81aafa 100644 --- a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalFileListResponseObject.cs +++ b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/InternalFileListResponseObject.cs @@ -11,7 +11,7 @@ namespace Azure.AI.OpenAI.Assistants { /// The InternalFileListResponse_object. - internal readonly partial struct InternalFileListResponseObject : IEquatable + public readonly partial struct InternalFileListResponseObject : IEquatable { private readonly string _value; diff --git a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfAssistantFileObject.cs b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfAssistantFileObject.cs index 56a4b12929c12..6888c44a742a4 100644 --- a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfAssistantFileObject.cs +++ b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfAssistantFileObject.cs @@ -11,7 +11,7 @@ namespace Azure.AI.OpenAI.Assistants { /// The OpenAIPageableListOfAssistantFile_object. - internal readonly partial struct OpenAIPageableListOfAssistantFileObject : IEquatable + public readonly partial struct OpenAIPageableListOfAssistantFileObject : IEquatable { private readonly string _value; diff --git a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfAssistantObject.cs b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfAssistantObject.cs index 46e773c0c35b4..d331dba44abd7 100644 --- a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfAssistantObject.cs +++ b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfAssistantObject.cs @@ -11,7 +11,7 @@ namespace Azure.AI.OpenAI.Assistants { /// The OpenAIPageableListOfAssistant_object. - internal readonly partial struct OpenAIPageableListOfAssistantObject : IEquatable + public readonly partial struct OpenAIPageableListOfAssistantObject : IEquatable { private readonly string _value; diff --git a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfMessageFileObject.cs b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfMessageFileObject.cs index de78651dc7c73..b4d15d0f9482b 100644 --- a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfMessageFileObject.cs +++ b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfMessageFileObject.cs @@ -11,7 +11,7 @@ namespace Azure.AI.OpenAI.Assistants { /// The OpenAIPageableListOfMessageFile_object. - internal readonly partial struct OpenAIPageableListOfMessageFileObject : IEquatable + public readonly partial struct OpenAIPageableListOfMessageFileObject : IEquatable { private readonly string _value; diff --git a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfRunStepObject.cs b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfRunStepObject.cs index c2917cdcb9a65..a2c10f7da8b2a 100644 --- a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfRunStepObject.cs +++ b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfRunStepObject.cs @@ -11,7 +11,7 @@ namespace Azure.AI.OpenAI.Assistants { /// The OpenAIPageableListOfRunStep_object. - internal readonly partial struct OpenAIPageableListOfRunStepObject : IEquatable + public readonly partial struct OpenAIPageableListOfRunStepObject : IEquatable { private readonly string _value; diff --git a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfThreadMessageObject.cs b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfThreadMessageObject.cs index 03431876112ee..799fa1c74a1a6 100644 --- a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfThreadMessageObject.cs +++ b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfThreadMessageObject.cs @@ -11,7 +11,7 @@ namespace Azure.AI.OpenAI.Assistants { /// The OpenAIPageableListOfThreadMessage_object. - internal readonly partial struct OpenAIPageableListOfThreadMessageObject : IEquatable + public readonly partial struct OpenAIPageableListOfThreadMessageObject : IEquatable { private readonly string _value; diff --git a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfThreadRunObject.cs b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfThreadRunObject.cs index e12f29c2b5142..a9b440da26a09 100644 --- a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfThreadRunObject.cs +++ b/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/OpenAIPageableListOfThreadRunObject.cs @@ -11,7 +11,7 @@ namespace Azure.AI.OpenAI.Assistants { /// The OpenAIPageableListOfThreadRun_object. - internal readonly partial struct OpenAIPageableListOfThreadRunObject : IEquatable + public readonly partial struct OpenAIPageableListOfThreadRunObject : IEquatable { private readonly string _value; diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranscription.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranscription.cs index 3b5c8db62928d..464a68469a17a 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranscription.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranscription.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.OpenAI { diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranslation.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranslation.cs index 0b6427f1b6579..b94a593a2c06d 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranslation.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranslation.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.OpenAI { diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureChatExtensionsMessageContext.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureChatExtensionsMessageContext.cs index ad366f5f7c83f..a2a74e497c84b 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureChatExtensionsMessageContext.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureChatExtensionsMessageContext.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.OpenAI { diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureSearchIndexFieldMappingOptions.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureSearchIndexFieldMappingOptions.cs index cb970f8cff7b0..cd659dda5d7f6 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureSearchIndexFieldMappingOptions.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureSearchIndexFieldMappingOptions.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.OpenAI { diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/ChatCompletions.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/ChatCompletions.cs index c5961adf84224..832b495cf61bd 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/ChatCompletions.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/ChatCompletions.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.OpenAI { diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/ChatRequestAssistantMessage.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/ChatRequestAssistantMessage.cs index 8e1dbe14dc727..8c35203f8fbc0 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/ChatRequestAssistantMessage.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/ChatRequestAssistantMessage.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.OpenAI { diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/ChatResponseMessage.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/ChatResponseMessage.cs index be00f03903a3f..97616d4b93788 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/ChatResponseMessage.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/ChatResponseMessage.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.OpenAI { diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/Completions.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/Completions.cs index 7084b1bae0de9..49a75a8df31e2 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/Completions.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/Completions.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.OpenAI { diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/ContentFilterResultDetailsForPrompt.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/ContentFilterResultDetailsForPrompt.cs index 8ace266b1be58..2faf60943c4f0 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/ContentFilterResultDetailsForPrompt.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/ContentFilterResultDetailsForPrompt.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; namespace Azure.AI.OpenAI { diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/ContentFilterResultsForChoice.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/ContentFilterResultsForChoice.cs index 6f2a677279132..b65c4d3d180f7 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/ContentFilterResultsForChoice.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/ContentFilterResultsForChoice.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; namespace Azure.AI.OpenAI { diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/ElasticsearchIndexFieldMappingOptions.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/ElasticsearchIndexFieldMappingOptions.cs index 7bc569ed4d126..6213ad25cb497 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/ElasticsearchIndexFieldMappingOptions.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/ElasticsearchIndexFieldMappingOptions.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.OpenAI { diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/Internal/ChangeTrackingList.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..b06e0a43ffe7f --- /dev/null +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.OpenAI +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Internal/ChangeTrackingList.cs b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..d50d39b1d4d24 --- /dev/null +++ b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.EnergyServices +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/DataPartitionsListResult.cs b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/DataPartitionsListResult.cs index 34d036b267b17..9a18b7486f539 100644 --- a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/DataPartitionsListResult.cs +++ b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/DataPartitionsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EnergyServices; namespace Azure.ResourceManager.EnergyServices.Models { diff --git a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/EnergyServiceList.cs b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/EnergyServiceList.cs index b7e949b3b381d..915b2dae4e947 100644 --- a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/EnergyServiceList.cs +++ b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/EnergyServiceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.EnergyServices; namespace Azure.ResourceManager.EnergyServices.Models diff --git a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/EnergyServiceProperties.cs b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/EnergyServiceProperties.cs index 43eeccc2a14b4..3fe8f7c5b9b25 100644 --- a/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/EnergyServiceProperties.cs +++ b/sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/src/Generated/Models/EnergyServiceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.EnergyServices; namespace Azure.ResourceManager.EnergyServices.Models { diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Internal/ChangeTrackingList.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..14bcbce3d0435 --- /dev/null +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.OperationalInsights +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/ClusterListResult.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/ClusterListResult.cs index d5626548caf12..b1f6d18c44358 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/ClusterListResult.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/ClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/DataExportListResult.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/DataExportListResult.cs index 223cef6d9ec47..cf14ff82ae1a3 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/DataExportListResult.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/DataExportListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/DataSourceListResult.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/DataSourceListResult.cs index f5b2cea2d8fb3..3ed3423c97170 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/DataSourceListResult.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/DataSourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LinkedServiceListResult.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LinkedServiceListResult.cs index 824b77cfe3ef1..607da70230946 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LinkedServiceListResult.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LinkedServiceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LinkedStorageAccountsListResult.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LinkedStorageAccountsListResult.cs index 3f91c545c2442..c72a87b7f47e9 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LinkedStorageAccountsListResult.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LinkedStorageAccountsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LogAnalyticsQueryRelatedMetadata.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LogAnalyticsQueryRelatedMetadata.cs index dcfe8853116e2..372db7edd2e59 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LogAnalyticsQueryRelatedMetadata.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LogAnalyticsQueryRelatedMetadata.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models { diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LogAnalyticsQuerySearchRelatedMetadata.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LogAnalyticsQuerySearchRelatedMetadata.cs index 0130d64519f30..4ad54c2477f54 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LogAnalyticsQuerySearchRelatedMetadata.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/LogAnalyticsQuerySearchRelatedMetadata.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models { diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsSchema.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsSchema.cs index fd46b89874cc7..8ebd321858e30 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsSchema.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsSchema.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models { diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsSearchSchemaValue.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsSearchSchemaValue.cs index a023aa61d76b2..f26258a306c5e 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsSearchSchemaValue.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsSearchSchemaValue.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models { diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspacePatch.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspacePatch.cs index 8ac0d28c883cc..597f685c6081f 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspacePatch.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/OperationalInsightsWorkspacePatch.cs @@ -10,6 +10,7 @@ using Azure; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models { diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/SavedSearchesListResult.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/SavedSearchesListResult.cs index 23b107b2b71fa..af9a3a5568cf6 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/SavedSearchesListResult.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/SavedSearchesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/SearchGetSchemaResponse.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/SearchGetSchemaResponse.cs index eda24117fd7c8..8a82d5c2a5e42 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/SearchGetSchemaResponse.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/SearchGetSchemaResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models { diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/SearchMetadata.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/SearchMetadata.cs index 0ee86001adafd..55bf82ef465c1 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/SearchMetadata.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/SearchMetadata.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models { diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/StorageInsightListResult.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/StorageInsightListResult.cs index 0fab8148f3c4e..7e2e128380b7f 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/StorageInsightListResult.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/StorageInsightListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/TablesListResult.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/TablesListResult.cs index 9024189f83ee1..a4265d2266d45 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/TablesListResult.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/TablesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/WorkspaceListManagementGroupsResult.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/WorkspaceListManagementGroupsResult.cs index 008865845b688..9b55c2fd4b5f8 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/WorkspaceListManagementGroupsResult.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/WorkspaceListManagementGroupsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models { diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/WorkspaceListResult.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/WorkspaceListResult.cs index e1357555609a4..c89a644ac9346 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/WorkspaceListResult.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/WorkspaceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/WorkspaceListUsagesResult.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/WorkspaceListUsagesResult.cs index a07222e934e0f..9e4ac497b27fc 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/WorkspaceListUsagesResult.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/Generated/Models/WorkspaceListUsagesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.OperationalInsights; namespace Azure.ResourceManager.OperationalInsights.Models { diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Internal/ChangeTrackingList.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..a4a56bf33eb88 --- /dev/null +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Orbital +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/AvailableGroundStationListResult.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/AvailableGroundStationListResult.cs index 7ff633e16be73..87487945687a7 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/AvailableGroundStationListResult.cs +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/AvailableGroundStationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Orbital; namespace Azure.ResourceManager.Orbital.Models diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/ContactProfileListResult.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/ContactProfileListResult.cs index 16f0d4a04ca25..712a5199215e0 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/ContactProfileListResult.cs +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/ContactProfileListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Orbital; namespace Azure.ResourceManager.Orbital.Models diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalAvailableContactsResult.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalAvailableContactsResult.cs index fdc7471674c1e..248b3a2159e9d 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalAvailableContactsResult.cs +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalAvailableContactsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Orbital; namespace Azure.ResourceManager.Orbital.Models { diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalContactAntennaConfiguration.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalContactAntennaConfiguration.cs index f485b140839ef..33e64e9aab929 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalContactAntennaConfiguration.cs +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalContactAntennaConfiguration.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.Orbital; namespace Azure.ResourceManager.Orbital.Models { diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalContactListResult.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalContactListResult.cs index e49bddb95e7fa..d30474b322207 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalContactListResult.cs +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalContactListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Orbital; namespace Azure.ResourceManager.Orbital.Models diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalSpacecraftLink.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalSpacecraftLink.cs index 083cf32af88fb..d3658ed5b9133 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalSpacecraftLink.cs +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalSpacecraftLink.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Orbital; namespace Azure.ResourceManager.Orbital.Models { diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalSpacecraftListResult.cs b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalSpacecraftListResult.cs index dcec2b3ed6442..79580345e951c 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalSpacecraftListResult.cs +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Generated/Models/OrbitalSpacecraftListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Orbital; namespace Azure.ResourceManager.Orbital.Models diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Internal/ChangeTrackingList.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..8da4168a6beea --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/DestinationAddressInfo.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/DestinationAddressInfo.cs index 795ad5689d4ed..e60393f1dcc88 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/DestinationAddressInfo.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/DestinationAddressInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PaloAltoNetworks.Ngfw; namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw.Models { diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/FirewallDnsSettings.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/FirewallDnsSettings.cs index fb5198428d677..474c22d6e9477 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/FirewallDnsSettings.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/FirewallDnsSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PaloAltoNetworks.Ngfw; namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw.Models { diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/FirewallNetworkProfile.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/FirewallNetworkProfile.cs index 4736d16a87ec3..69c192a05d5b6 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/FirewallNetworkProfile.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/FirewallNetworkProfile.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.PaloAltoNetworks.Ngfw; namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw.Models { diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/FirewallUpdateProperties.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/FirewallUpdateProperties.cs index b6a52213999df..490c8b7856ad1 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/FirewallUpdateProperties.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/FirewallUpdateProperties.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.PaloAltoNetworks.Ngfw; namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw.Models { diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackUpdateProperties.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackUpdateProperties.cs index c7a65d1458dc4..cf22399493d8d 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackUpdateProperties.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/GlobalRulestackUpdateProperties.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.PaloAltoNetworks.Ngfw; namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw.Models { diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackUpdateProperties.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackUpdateProperties.cs index 6d381bfefe9cd..2cb274cff69dc 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackUpdateProperties.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/LocalRulestackUpdateProperties.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.PaloAltoNetworks.Ngfw; namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw.Models { diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/SourceAddressInfo.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/SourceAddressInfo.cs index f881695b98656..12559dfc30fdf 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/SourceAddressInfo.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/Models/SourceAddressInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PaloAltoNetworks.Ngfw; namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw.Models { diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Internal/ChangeTrackingList.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..940cc881da208 --- /dev/null +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Peering +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/CdnPeeringPrefixListResult.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/CdnPeeringPrefixListResult.cs index 76097c2e9c9d9..69c1c801b4a50 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/CdnPeeringPrefixListResult.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/CdnPeeringPrefixListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models { diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/ConnectionMonitorTestListResult.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/ConnectionMonitorTestListResult.cs index bc80a47ac0ca4..d0abab0e205b5 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/ConnectionMonitorTestListResult.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/ConnectionMonitorTestListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/DirectPeeringLocationProperties.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/DirectPeeringLocationProperties.cs index e5c8bd2711269..2579e221761be 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/DirectPeeringLocationProperties.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/DirectPeeringLocationProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models { diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/DirectPeeringProperties.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/DirectPeeringProperties.cs index 59a6851e12ccf..79a17a5ad2ad4 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/DirectPeeringProperties.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/DirectPeeringProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Peering; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Peering.Models diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/ExchangePeeringProperties.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/ExchangePeeringProperties.cs index c891eca5b73fe..d9551bd17fc38 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/ExchangePeeringProperties.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/ExchangePeeringProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Peering; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Peering.Models diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeerAsnListResult.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeerAsnListResult.cs index 1ecef345700f3..58c4553c6aff4 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeerAsnListResult.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeerAsnListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringListResult.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringListResult.cs index b0dc62bbc96f8..b8125724eddfb 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringListResult.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringLocationListResult.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringLocationListResult.cs index df7485939b2f2..4d8f9b25ea308 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringLocationListResult.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringLocationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models { diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringLocationPropertiesExchange.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringLocationPropertiesExchange.cs index 74e881236aa91..f69e9c33536a3 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringLocationPropertiesExchange.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringLocationPropertiesExchange.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models { diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringLogAnalyticsWorkspaceProperties.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringLogAnalyticsWorkspaceProperties.cs index 74935fff71a3d..946442026f5ba 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringLogAnalyticsWorkspaceProperties.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringLogAnalyticsWorkspaceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models { diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringReceivedRouteListResult.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringReceivedRouteListResult.cs index 954e1710a16bc..870f71b76e27c 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringReceivedRouteListResult.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringReceivedRouteListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models { diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringRegisteredAsnListResult.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringRegisteredAsnListResult.cs index d82eb8c80b0d3..61ade273dbf10 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringRegisteredAsnListResult.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringRegisteredAsnListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringRegisteredPrefixListResult.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringRegisteredPrefixListResult.cs index 9e7022aa14acc..07b1216354db6 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringRegisteredPrefixListResult.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringRegisteredPrefixListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceCountryListResult.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceCountryListResult.cs index f4e398e3d1fd6..9f258ddd0c7e3 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceCountryListResult.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceCountryListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models { diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceListResult.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceListResult.cs index 7b410bc338321..675ec8e1ad36f 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceListResult.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceLocationListResult.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceLocationListResult.cs index d5bdde61f17a3..15030b171ea7c 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceLocationListResult.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceLocationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models { diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServicePrefixListResult.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServicePrefixListResult.cs index 9ff6361a42698..6d563cbc86888 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServicePrefixListResult.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServicePrefixListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceProvider.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceProvider.cs index 899f3abd9b453..d1f112ecd4af5 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceProvider.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceProvider.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models { diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceProviderListResult.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceProviderListResult.cs index 17e3c179ecb38..6ec647d7e1ebd 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceProviderListResult.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/PeeringServiceProviderListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models { diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/RpUnbilledPrefixListResult.cs b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/RpUnbilledPrefixListResult.cs index 557180ec65c16..b1ccb29131909 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/RpUnbilledPrefixListResult.cs +++ b/sdk/peering/Azure.ResourceManager.Peering/src/Generated/Models/RpUnbilledPrefixListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Peering; namespace Azure.ResourceManager.Peering.Models { diff --git a/sdk/personalizer/Azure.AI.Personalizer/src/Generated/Internal/ChangeTrackingList.cs b/sdk/personalizer/Azure.AI.Personalizer/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..b988b2264dbff --- /dev/null +++ b/sdk/personalizer/Azure.AI.Personalizer/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.Personalizer +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/Internal/ChangeTrackingList.cs b/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..3db0b111aa9c0 --- /dev/null +++ b/sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.PlaywrightTesting +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Internal/ChangeTrackingList.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..1ef4e2ae375e2 --- /dev/null +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.PolicyInsights +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/AttestationListResult.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/AttestationListResult.cs index d8f8f42906f78..806de5bdd1f4f 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/AttestationListResult.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/AttestationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckManagementGroupPolicyRestrictionsContent.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckManagementGroupPolicyRestrictionsContent.cs index aea496d59624a..db82f73bd573d 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckManagementGroupPolicyRestrictionsContent.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckManagementGroupPolicyRestrictionsContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckPolicyRestrictionsContent.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckPolicyRestrictionsContent.cs index fa6759c56994a..442bad85eb7df 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckPolicyRestrictionsContent.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckPolicyRestrictionsContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckPolicyRestrictionsResult.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckPolicyRestrictionsResult.cs index a551c406fd910..4a740854ae644 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckPolicyRestrictionsResult.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckPolicyRestrictionsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckRestrictionsResultContentEvaluationResult.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckRestrictionsResultContentEvaluationResult.cs index 4c771b0e0addf..374ccd94e2169 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckRestrictionsResultContentEvaluationResult.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/CheckRestrictionsResultContentEvaluationResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/FieldRestriction.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/FieldRestriction.cs index 547345454f06d..1283248024d79 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/FieldRestriction.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/FieldRestriction.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/FieldRestrictions.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/FieldRestrictions.cs index 7104f3fdb9974..50ef6669d8651 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/FieldRestrictions.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/FieldRestrictions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PendingField.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PendingField.cs index 3941b131df645..46075c7d85015 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PendingField.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PendingField.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyAssignmentSummary.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyAssignmentSummary.cs index 9b57a3109effc..eb6847d4300fb 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyAssignmentSummary.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyAssignmentSummary.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyDefinitionSummary.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyDefinitionSummary.cs index 27a8646c097e7..98f616aa1bc47 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyDefinitionSummary.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyDefinitionSummary.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyEvaluationDetails.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyEvaluationDetails.cs index 3aed32e8a9941..d23fc544b9578 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyEvaluationDetails.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyEvaluationDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyEvent.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyEvent.cs index 32fb4adfb3a34..897bb613ac2f8 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyEvent.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyEvent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyEventsQueryResults.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyEventsQueryResults.cs index b28677a6f197e..f526e09f26f7f 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyEventsQueryResults.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyEventsQueryResults.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyMetadataCollection.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyMetadataCollection.cs index 785da17ea9cbb..14e4a62d1fbed 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyMetadataCollection.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyMetadataCollection.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyState.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyState.cs index 284ed31e11dc1..41bc8007c8614 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyState.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyState.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyStatesQueryResults.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyStatesQueryResults.cs index d3cefa92f543b..7c3e37b4717ce 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyStatesQueryResults.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyStatesQueryResults.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicySummary.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicySummary.cs index 7535f723770b1..502d322719219 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicySummary.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicySummary.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicySummaryResults.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicySummaryResults.cs index b8462a369a6fd..9fbee80274c71 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicySummaryResults.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicySummaryResults.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyTrackedResourcesQueryResults.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyTrackedResourcesQueryResults.cs index 3fe2a2bcb1cc9..39fbe150453ee 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyTrackedResourcesQueryResults.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/PolicyTrackedResourcesQueryResults.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/RemediationDeploymentsListResult.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/RemediationDeploymentsListResult.cs index 27d54910ff8cf..bbf54f8fa7ee8 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/RemediationDeploymentsListResult.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/RemediationDeploymentsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/RemediationFilters.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/RemediationFilters.cs index 2b64a3402ea56..ec0ac131f94b3 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/RemediationFilters.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/RemediationFilters.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/RemediationListResult.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/RemediationListResult.cs index ee92bc13b08af..cf6f0664eec09 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/RemediationListResult.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/RemediationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models diff --git a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/SummarizeResults.cs b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/SummarizeResults.cs index 4440cea2a3d7a..74aaa2dde493e 100644 --- a/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/SummarizeResults.cs +++ b/sdk/policyinsights/Azure.ResourceManager.PolicyInsights/src/Generated/Models/SummarizeResults.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PolicyInsights; namespace Azure.ResourceManager.PolicyInsights.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Internal/ChangeTrackingList.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..a7fbc7c9464f5 --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.PostgreSql +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlConfigurationList.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlConfigurationList.cs index 7c68a041950d9..225549da88904 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlConfigurationList.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlConfigurationList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlDatabaseListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlDatabaseListResult.cs index 5d11bec1e351d..cc6da024a7cb2 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlDatabaseListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlDatabaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlFirewallRuleListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlFirewallRuleListResult.cs index 7c65c46892766..82c7acad63d65 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlFirewallRuleListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlFirewallRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlLogFileListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlLogFileListResult.cs index e8ecad9ac0adb..01cbd45db4cf2 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlLogFileListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlLogFileListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPerformanceTierListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPerformanceTierListResult.cs index eb73412796c0d..f718c987f4393 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPerformanceTierListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPerformanceTierListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPerformanceTierProperties.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPerformanceTierProperties.cs index d8d4c8796ae4e..4c6cdc66bb23b 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPerformanceTierProperties.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPerformanceTierProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateEndpointConnectionListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateEndpointConnectionListResult.cs index eebc7514410fc..ce4b043752001 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateEndpointConnectionListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateLinkResourceListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateLinkResourceListResult.cs index 4c8e1bb153fc7..1ac1ad6165f66 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateLinkResourceListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateLinkResourceProperties.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateLinkResourceProperties.cs index 301aa4378ff25..9e32de00ea2e7 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateLinkResourceProperties.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlPrivateLinkResourceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerAdministratorListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerAdministratorListResult.cs index db7ba761a7ab2..e5cabf005173b 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerAdministratorListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerAdministratorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerKeyListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerKeyListResult.cs index 96607323c9f44..8df8e55e5ad24 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerKeyListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerKeyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerListResult.cs index fc0856de5ea04..217b4e6fbc3ae 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerSecurityAlertPolicyListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerSecurityAlertPolicyListResult.cs index c1ddfe46ab465..d003ae25b7f5e 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerSecurityAlertPolicyListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlServerSecurityAlertPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlVirtualNetworkRuleListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlVirtualNetworkRuleListResult.cs index 04a87af011b6e..de0497592a011 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlVirtualNetworkRuleListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/Models/PostgreSqlVirtualNetworkRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Custom/HelperSuppresions.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Custom/HelperSuppresions.cs index 8af14f17e0dbd..2a52d702a8816 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Custom/HelperSuppresions.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Custom/HelperSuppresions.cs @@ -4,3 +4,4 @@ using Azure.Core; [assembly: CodeGenSuppressType("Azure.ResourceManager.PostgreSql.Optional")] +[assembly: CodeGenSuppressType("Azure.ResourceManager.PostgreSql.ChangeTrackingList")] diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAdministratorListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAdministratorListResult.cs index 4b6ef71c9d8ea..3f06e6cf31ca9 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAdministratorListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAdministratorListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; using Azure.ResourceManager.PostgreSql.FlexibleServers; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupListResult.cs index c7d5b3218b49b..7aa23db5cdb62 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; using Azure.ResourceManager.PostgreSql.FlexibleServers; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilitiesListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilitiesListResult.cs index db4199b262b51..9c5faedf337b4 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilitiesListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilitiesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilityProperties.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilityProperties.cs index cfd479e17c047..2a647d2806208 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilityProperties.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilityProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerConfigurationListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerConfigurationListResult.cs index 50cef6e707bd9..ce5990b5dc109 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerConfigurationListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerConfigurationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; using Azure.ResourceManager.PostgreSql.FlexibleServers; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseListResult.cs index 652d22c527a70..3b9c7dc218b63 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; using Azure.ResourceManager.PostgreSql.FlexibleServers; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerEditionCapability.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerEditionCapability.cs index dc2c3309f8f66..3030e64237f5d 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerEditionCapability.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerEditionCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerFirewallRuleListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerFirewallRuleListResult.cs index cac3a0919b011..1ed84c44b9a9a 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerFirewallRuleListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerFirewallRuleListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; using Azure.ResourceManager.PostgreSql.FlexibleServers; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerListResult.cs index a466c141b70dd..ef1369b47aadd 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; using Azure.ResourceManager.PostgreSql.FlexibleServers; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerLogFileListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerLogFileListResult.cs index 39d6fec34b75e..255a5dcffd5cf 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerLogFileListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerLogFileListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerServerVersionCapability.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerServerVersionCapability.cs index 638ce840dec6f..f236c0e57a864 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerServerVersionCapability.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerServerVersionCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerSkuCapability.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerSkuCapability.cs index 37cb233f08117..e10786e35e242 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerSkuCapability.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerSkuCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageCapability.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageCapability.cs index 75611d7f2e224..e380d7c2b9030 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageCapability.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageEditionCapability.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageEditionCapability.cs index 44ec3fba0a1b9..508ef2774cdd8 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageEditionCapability.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageEditionCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult.cs index fd377c72355f5..7c0a234d51802 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlLtrServerBackupOperationList.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlLtrServerBackupOperationList.cs index dc32408905892..1b6854412614c 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlLtrServerBackupOperationList.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlLtrServerBackupOperationList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; using Azure.ResourceManager.PostgreSql.FlexibleServers; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlMigrationPatch.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlMigrationPatch.cs index d40fbbb7df297..d9f59f4699711 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlMigrationPatch.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlMigrationPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.PostgreSql; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models { diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlMigrationResourceListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlMigrationResourceListResult.cs index 438b7f2503a4e..1ac6a06ec0e3c 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlMigrationResourceListResult.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlMigrationResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PostgreSql; using Azure.ResourceManager.PostgreSql.FlexibleServers; namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlMigrationData.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlMigrationData.cs index 5c17fca67a6d6..f3fb46b4fd64c 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlMigrationData.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlMigrationData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.PostgreSql; using Azure.ResourceManager.PostgreSql.FlexibleServers.Models; namespace Azure.ResourceManager.PostgreSql.FlexibleServers diff --git a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Internal/ChangeTrackingList.cs b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..9eda486a143eb --- /dev/null +++ b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.PowerBIDedicated +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/DedicatedCapacityAdministrators.cs b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/DedicatedCapacityAdministrators.cs index 003d0fdee92b4..50a6d295228f1 100644 --- a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/DedicatedCapacityAdministrators.cs +++ b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/DedicatedCapacityAdministrators.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PowerBIDedicated; namespace Azure.ResourceManager.PowerBIDedicated.Models { diff --git a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/SkuEnumerationForExistingResourceResult.cs b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/SkuEnumerationForExistingResourceResult.cs index 6b62cb7a89b93..969b7cfb3281c 100644 --- a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/SkuEnumerationForExistingResourceResult.cs +++ b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/SkuEnumerationForExistingResourceResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PowerBIDedicated; namespace Azure.ResourceManager.PowerBIDedicated.Models { diff --git a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/SkuEnumerationForNewResourceResult.cs b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/SkuEnumerationForNewResourceResult.cs index ccaa5feb61725..221c4aec6e5aa 100644 --- a/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/SkuEnumerationForNewResourceResult.cs +++ b/sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/src/Generated/Models/SkuEnumerationForNewResourceResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PowerBIDedicated; namespace Azure.ResourceManager.PowerBIDedicated.Models { diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Internal/ChangeTrackingList.cs b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..03c0cf1997beb --- /dev/null +++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.PrivateDns +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/PrivateDnsRecordListResult.cs b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/PrivateDnsRecordListResult.cs index 5ac5993669942..88cf8b85b94cc 100644 --- a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/PrivateDnsRecordListResult.cs +++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/PrivateDnsRecordListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PrivateDns; namespace Azure.ResourceManager.PrivateDns.Models diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/PrivateDnsTxtRecordInfo.cs b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/PrivateDnsTxtRecordInfo.cs index 7c709e14b1d6b..88afdd7e3b289 100644 --- a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/PrivateDnsTxtRecordInfo.cs +++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/PrivateDnsTxtRecordInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.PrivateDns; namespace Azure.ResourceManager.PrivateDns.Models { diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/PrivateZoneListResult.cs b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/PrivateZoneListResult.cs index 65546bc966449..e5c3f16957acc 100644 --- a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/PrivateZoneListResult.cs +++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/PrivateZoneListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PrivateDns; namespace Azure.ResourceManager.PrivateDns.Models diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/VirtualNetworkLinkListResult.cs b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/VirtualNetworkLinkListResult.cs index 1d2f5a3bc700e..3392430558475 100644 --- a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/VirtualNetworkLinkListResult.cs +++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Generated/Models/VirtualNetworkLinkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.PrivateDns; namespace Azure.ResourceManager.PrivateDns.Models diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Internal/ChangeTrackingList.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..9c90ceaa50040 --- /dev/null +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ProviderHub +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CanaryTrafficRegionRolloutConfiguration.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CanaryTrafficRegionRolloutConfiguration.cs index acc5f1e3ffdd1..44e27f095fb07 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CanaryTrafficRegionRolloutConfiguration.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CanaryTrafficRegionRolloutConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CheckNameAvailabilitySpecifications.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CheckNameAvailabilitySpecifications.cs index 54866351afbd8..42c6616d27d12 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CheckNameAvailabilitySpecifications.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CheckNameAvailabilitySpecifications.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CustomRolloutListResult.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CustomRolloutListResult.cs index 5c2b5cebae02f..20ce26e4bb3e5 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CustomRolloutListResult.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CustomRolloutListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CustomRolloutStatus.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CustomRolloutStatus.cs index b9a14dfa4801f..7fce7630f0f23 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CustomRolloutStatus.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/CustomRolloutStatus.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/DefaultRolloutListResult.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/DefaultRolloutListResult.cs index 0c054a017bb7b..56748b872bf27 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/DefaultRolloutListResult.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/DefaultRolloutListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/DefaultRolloutSpecification.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/DefaultRolloutSpecification.cs index 4854a22ba04ef..5207f26c8c2a3 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/DefaultRolloutSpecification.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/DefaultRolloutSpecification.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ExtendedErrorInfo.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ExtendedErrorInfo.cs index 229cfd6089005..387577a5add0f 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ExtendedErrorInfo.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ExtendedErrorInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ExtensionOptions.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ExtensionOptions.cs index 884f5e73fa4db..4e0268b6d334e 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ExtensionOptions.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ExtensionOptions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/LoggingHiddenPropertyPaths.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/LoggingHiddenPropertyPaths.cs index 8a3f28842eccd..97e29098bc525 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/LoggingHiddenPropertyPaths.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/LoggingHiddenPropertyPaths.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationEndpoint.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationEndpoint.cs index 7278cb3613428..ccae2e09d71fb 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationEndpoint.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationEndpoint.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationRegistrationListResult.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationRegistrationListResult.cs index 4a079b79c14b8..66aae4e570a1c 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationRegistrationListResult.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationRegistrationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationRegistrationProperties.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationRegistrationProperties.cs index d2c43d3cb8d25..36d8b77665bc5 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationRegistrationProperties.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/NotificationRegistrationProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderHubMetadata.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderHubMetadata.cs index b6a955578ca16..88688f8ebbab6 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderHubMetadata.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderHubMetadata.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderRegistrationListResult.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderRegistrationListResult.cs index 2ab698712035f..a221662ccc8ba 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderRegistrationListResult.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderRegistrationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderResourceType.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderResourceType.cs index b8c44caaf8206..5a96ef58d8e6a 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderResourceType.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderResourceType.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderSubscriptionStateRule.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderSubscriptionStateRule.cs index d291f82929f6c..ee902cc2e839d 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderSubscriptionStateRule.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ProviderSubscriptionStateRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderCapabilities.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderCapabilities.cs index 1eb81facc5fe3..0c71c76e7707f 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderCapabilities.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderCapabilities.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderEndpoint.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderEndpoint.cs index daa4fc9e5a659..97501386b92f1 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderEndpoint.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderEndpoint.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderManagement.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderManagement.cs index b844bfa826ac1..e88563d0b57c1 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderManagement.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderManagement.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderManifest.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderManifest.cs index 626dc25277c0d..7cb0154c66cd8 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderManifest.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderManifest.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderManifestProperties.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderManifestProperties.cs index 6a1e4ba9f4576..801424d9d7029 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderManifestProperties.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceProviderManifestProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeEndpoint.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeEndpoint.cs index ab520fb0d5dc2..edba44813b414 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeEndpoint.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeEndpoint.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeExtension.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeExtension.cs index 13b567f307850..027683839fde6 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeExtension.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeExtension.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeRegistrationListResult.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeRegistrationListResult.cs index ba14fc8d79662..b974a250e8dfd 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeRegistrationListResult.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeRegistrationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeRegistrationProperties.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeRegistrationProperties.cs index 6204dfc6b3db7..6c2ac48664176 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeRegistrationProperties.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeRegistrationProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuListResult.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuListResult.cs index 9ba11c36824fe..3984c1fb92643 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuListResult.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuLocationInfo.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuLocationInfo.cs index e4ca443b9d9bf..66f2947402663 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuLocationInfo.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuLocationInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuSetting.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuSetting.cs index 0895d8f9977b0..50651952bfbac 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuSetting.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuSetting.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuZoneDetail.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuZoneDetail.cs index d2ef951de8506..26caf718aeffd 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuZoneDetail.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuZoneDetail.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/RolloutStatusBase.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/RolloutStatusBase.cs index 53321d238105e..90f70004802cd 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/RolloutStatusBase.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/RolloutStatusBase.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/SubscriptionLifecycleNotificationSpecifications.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/SubscriptionLifecycleNotificationSpecifications.cs index feaa6b668c0e1..4640f286ebd03 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/SubscriptionLifecycleNotificationSpecifications.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/SubscriptionLifecycleNotificationSpecifications.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/SwaggerSpecification.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/SwaggerSpecification.cs index 258a949a45a71..0fd252b767479 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/SwaggerSpecification.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/SwaggerSpecification.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/TemplateDeploymentOptions.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/TemplateDeploymentOptions.cs index ffb62953edb16..a227c59045389 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/TemplateDeploymentOptions.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/TemplateDeploymentOptions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ThirdPartyProviderAuthorization.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ThirdPartyProviderAuthorization.cs index 3fa59a293c890..d2c48471940c1 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ThirdPartyProviderAuthorization.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ThirdPartyProviderAuthorization.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ThrottlingRule.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ThrottlingRule.cs index 570e98e5ef862..acba828eb01cc 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ThrottlingRule.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ThrottlingRule.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/TrafficRegions.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/TrafficRegions.cs index c33319c088349..2a488153acd37 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/TrafficRegions.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/TrafficRegions.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ProviderHub; namespace Azure.ResourceManager.ProviderHub.Models { diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Internal/ChangeTrackingList.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..6ed52d2220f9d --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Analytics.Purview.Catalog +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/Internal/ChangeTrackingList.cs b/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..feb1bb67c2011 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Analytics.Purview.Workflows +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Internal/ChangeTrackingList.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..4ad6a4081b90c --- /dev/null +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Purview +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewAccountProperties.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewAccountProperties.cs index 5444a249fba53..08dfff7738127 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewAccountProperties.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewAccountProperties.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Purview; namespace Azure.ResourceManager.Purview.Models diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewBatchFeatureContent.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewBatchFeatureContent.cs index e4331250b2d42..a11152d96b85a 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewBatchFeatureContent.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewBatchFeatureContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Purview; namespace Azure.ResourceManager.Purview.Models { diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewPrivateLinkResourceProperties.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewPrivateLinkResourceProperties.cs index 81528c57f1380..c742f1b5ba78b 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewPrivateLinkResourceProperties.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/PurviewPrivateLinkResourceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Purview; namespace Azure.ResourceManager.Purview.Models { diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/UsageList.cs b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/UsageList.cs index 9d3a715c31df7..997a84b73a7ee 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/UsageList.cs +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Generated/Models/UsageList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Purview; namespace Azure.ResourceManager.Purview.Models { diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Internal/ChangeTrackingList.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..96a92e33497c9 --- /dev/null +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Quantum.Jobs +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/CostEstimate.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/CostEstimate.Serialization.cs index 9e42d8503f38a..fe402ffc7242a 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/CostEstimate.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/CostEstimate.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Quantum.Jobs; namespace Azure.Quantum.Jobs.Models { diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/CostEstimate.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/CostEstimate.cs index 142a0f7fe76a2..7b9b359965cd8 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/CostEstimate.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/CostEstimate.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Quantum.Jobs; namespace Azure.Quantum.Jobs.Models { diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetails.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetails.cs index bdc0649a06db2..ff7d0d76053af 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetails.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.Quantum.Jobs; namespace Azure.Quantum.Jobs.Models { diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetailsList.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetailsList.Serialization.cs index b088a5e131526..55013ba9fd9ab 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetailsList.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetailsList.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Quantum.Jobs; namespace Azure.Quantum.Jobs.Models { diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetailsList.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetailsList.cs index dadf2ca09200c..b18d14334f0f7 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetailsList.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetailsList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Quantum.Jobs; namespace Azure.Quantum.Jobs.Models { diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatus.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatus.Serialization.cs index 0b83345f9a6f8..36b6def667189 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatus.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatus.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Quantum.Jobs; namespace Azure.Quantum.Jobs.Models { diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatus.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatus.cs index 26589621da79f..538841d9ff89e 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatus.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatus.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Quantum.Jobs; namespace Azure.Quantum.Jobs.Models { diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatusList.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatusList.Serialization.cs index 4dfed0e4ca8ce..4099f27edd3ce 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatusList.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatusList.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Quantum.Jobs; namespace Azure.Quantum.Jobs.Models { diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatusList.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatusList.cs index 718dea107795e..6a24c820fd4aa 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatusList.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatusList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Quantum.Jobs; namespace Azure.Quantum.Jobs.Models { diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuotaList.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuotaList.Serialization.cs index f1cafd293bcf6..25116d8fe9dca 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuotaList.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuotaList.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Quantum.Jobs; namespace Azure.Quantum.Jobs.Models { diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuotaList.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuotaList.cs index 6e7d81d88969e..4a147abe2319a 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuotaList.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuotaList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Quantum.Jobs; namespace Azure.Quantum.Jobs.Models { diff --git a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Internal/ChangeTrackingList.cs b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..b8b8531d1281a --- /dev/null +++ b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Quantum +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/OfferingsListResult.cs b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/OfferingsListResult.cs index fc62dfed680c9..3c88f9b5b8c13 100644 --- a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/OfferingsListResult.cs +++ b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/OfferingsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Quantum; namespace Azure.ResourceManager.Quantum.Models { diff --git a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/ProviderProperties.cs b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/ProviderProperties.cs index 229d9551be95b..c51a0031fcb2e 100644 --- a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/ProviderProperties.cs +++ b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/ProviderProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Quantum; namespace Azure.ResourceManager.Quantum.Models { diff --git a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/SkuDescription.cs b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/SkuDescription.cs index bf0c950efa0fe..da4ecde2659a9 100644 --- a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/SkuDescription.cs +++ b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/SkuDescription.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Quantum; namespace Azure.ResourceManager.Quantum.Models { diff --git a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/TargetDescription.cs b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/TargetDescription.cs index 114f7493c1689..4cd32aef7e456 100644 --- a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/TargetDescription.cs +++ b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/TargetDescription.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Quantum; namespace Azure.ResourceManager.Quantum.Models { diff --git a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/WorkspaceListResult.cs b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/WorkspaceListResult.cs index ece3552bd610f..67d8e7b5a08f8 100644 --- a/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/WorkspaceListResult.cs +++ b/sdk/quantum/Azure.ResourceManager.Quantum/src/Generated/Models/WorkspaceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Quantum; namespace Azure.ResourceManager.Quantum.Models diff --git a/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/Internal/ChangeTrackingList.cs b/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..0162e6d3b67b8 --- /dev/null +++ b/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Qumulo +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/Models/FileSystemResourceUpdateProperties.cs b/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/Models/FileSystemResourceUpdateProperties.cs index 27235977ae0e9..90eb494c04647 100644 --- a/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/Models/FileSystemResourceUpdateProperties.cs +++ b/sdk/qumulo/Azure.ResourceManager.Qumulo/src/Generated/Models/FileSystemResourceUpdateProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Qumulo; namespace Azure.ResourceManager.Qumulo.Models { diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Internal/ChangeTrackingList.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..088f7843d6bef --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Quota +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaLimits.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaLimits.cs index 55a62455bfc31..9294eb24e43d6 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaLimits.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaLimits.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Quota; namespace Azure.ResourceManager.Quota.Models diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaOperationListResult.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaOperationListResult.cs index 976c119dee66b..5da4ea493765d 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaOperationListResult.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaOperationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Quota; namespace Azure.ResourceManager.Quota.Models { diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaRequestDetailsList.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaRequestDetailsList.cs index c817519ba68f8..746ae2b16469a 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaRequestDetailsList.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/QuotaRequestDetailsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Quota; namespace Azure.ResourceManager.Quota.Models diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/UsagesLimits.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/UsagesLimits.cs index 7cec532399908..b37b581ddb913 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/UsagesLimits.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/UsagesLimits.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Quota; namespace Azure.ResourceManager.Quota.Models diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Internal/ChangeTrackingList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..205feb7f4d531 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDailySchedule.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDailySchedule.cs index e98683207db98..32281e8e33793 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDailySchedule.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDailySchedule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceList.cs index 00684f0c4e6d4..3243435cf96ad 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupErrorDetail.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupErrorDetail.cs index ad8d71a3b6a62..48f643f6d9b57 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupErrorDetail.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupErrorDetail.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.cs index 58606e82f8889..f652cb8c14ecf 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionPolicy.cs index ca7dd51e38bd4..486517dda3732 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobListResult.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobListResult.cs index 329eb98a89b73..120727a0046d2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobListResult.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupManagementUsageList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupManagementUsageList.cs index 932d09f03bb5e..c990e0d287004 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupManagementUsageList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupManagementUsageList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs index 19d55998c6463..f6b58dc6df9d3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.RecoveryServicesBackup.Models diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.cs index 3c4afb2c050b2..548a0aa38aa75 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeeklySchedule.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeeklySchedule.cs index 7253b572e06d3..b40515c466641 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeeklySchedule.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeeklySchedule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionFormat.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionFormat.cs index d8862b7e7722e..afe7d4950db50 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionFormat.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionFormat.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionSchedule.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionSchedule.cs index cdc714dc623e2..5badafa6a9a91 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionSchedule.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionSchedule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DiskExclusionProperties.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DiskExclusionProperties.cs index 85078982f6907..75ced4a87e95f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DiskExclusionProperties.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DiskExclusionProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJob.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJob.cs index 96f341ec85f1e..af4d0c29268d8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJob.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJob.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobExtendedInfo.cs index d2c72fb458182..60831f704fbf8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobExtendedInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmContainer.cs index fbd495553979c..ea6e9052e0702 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmContainer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmErrorInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmErrorInfo.cs index 4caa96c140257..9b88fbca538ad 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmErrorInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmErrorInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.cs index 2914e71ce68b5..d54b3da9ff86d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectionPolicy.cs index 647d3afed5897..105d8eecda27a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectionPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJob.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJob.cs index 8b8a44b3c063e..b824f58abd054 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJob.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJob.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobExtendedInfo.cs index e6aaabeed7953..5d55a66592b8f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobExtendedInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobV2.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobV2.cs index 5910681ed2c32..2e2640b5863c1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobV2.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobV2.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmErrorInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmErrorInfo.cs index 31343a354bd14..4e5b4e1ffb896 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmErrorInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmErrorInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs index 69f322da24ea0..4fa79533eb0e1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.cs index 71c152b24f5a4..ea0e7bd518cce 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.RecoveryServicesBackup.Models diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.cs index e1b01dcfc3a98..ad7ee48ed3492 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.RecoveryServicesBackup.Models diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KpiResourceHealthDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KpiResourceHealthDetails.cs index 9fad5ffb245c8..c91c793db84f6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KpiResourceHealthDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KpiResourceHealthDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJob.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJob.cs index 9c6e26c86fe26..ea8e42d750d24 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJob.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJob.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobExtendedInfo.cs index f28d368fb9abe..8277a2cb5e43a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobExtendedInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainer.cs index c8a52e42bc17f..2b10bb9a4075b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainerExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainerExtendedInfo.cs index 0794e35f0ff71..2db870e8530f1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainerExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainerExtendedInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainerHealthDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainerHealthDetails.cs index 9438f3b7d5414..378da0924a082 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainerHealthDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainerHealthDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabErrorInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabErrorInfo.cs index 4e16a329aa15c..af4cf9d585387 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabErrorInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabErrorInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthlyRetentionSchedule.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthlyRetentionSchedule.cs index c9768d239963f..2481915accf06 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthlyRetentionSchedule.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthlyRetentionSchedule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveContent.cs index e97fa76e96a9d..afe3f42cbd96a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerResourceList.cs index 2abf82baff5c4..94b0f6b1ca0d7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerResourceList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceList.cs index 79faa618954dd..ec8d7818a3b86 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceList.cs index d0bf9a130d336..b3d761e71cf6a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceList.cs index 2c36f45e56324..f5d27e222485a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceList.cs index a178f797ead3c..d23ce32a5edd3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointDiskConfiguration.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointDiskConfiguration.cs index 64517e768ae46..c589764b10b52 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointDiskConfiguration.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointDiskConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceList.cs index d7b540fffd592..787db1b7570e1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointsRecommendedForMoveContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointsRecommendedForMoveContent.cs index 12ae45f04b89e..67773a95ed02c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointsRecommendedForMoveContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointsRecommendedForMoveContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.cs index e3ebebbf51641..c27ba2dd05f37 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyProperties.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyProperties.cs index 244ea1e50a312..0ce7fe43544a3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyProperties.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceHealthDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceHealthDetails.cs index ce2839fbadcd6..96ca18ba5a651 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceHealthDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceHealthDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinContent.cs index 868d2dd53de9e..87e5f1bc4b4c7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicy.cs index 9e6caa8ef5085..f3140fe54ecde 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJob.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJob.cs index 6bb7d6dd54bea..6137b4a1b6495 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJob.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJob.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobExtendedInfo.cs index 55fcb41283053..6dd7513062084 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobExtendedInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageErrorInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageErrorInfo.cs index 0ae6aa1bf2be9..cf4ea0bde0d03 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageErrorInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageErrorInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerDataMoveContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerDataMoveContent.cs index e285e201dfbd9..a3648a57cb5b2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerDataMoveContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerDataMoveContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteContent.cs index ee99eb20abbc0..650fe6a591b00 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJob.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJob.cs index 5f1a6cba0df62..493039ded3366 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJob.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJob.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobErrorInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobErrorInfo.cs index f8c5444deae85..6668c73451195 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobErrorInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobErrorInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.cs index 482b142083ca0..5ce4b7431292c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectionPolicy.cs index dc757239fe65b..485283e319e97 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectionPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.cs index b264bd713c981..b4efda0dc350d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceWorkloadItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceWorkloadItem.cs index 8d6683df9d25e..4ed57795b0ecd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceWorkloadItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceWorkloadItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionFormat.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionFormat.cs index fb00299774a65..cf5f990a864f0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionFormat.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionFormat.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionSchedule.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionSchedule.cs index 8b6a10cbb69fb..0954502be8ced 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionSchedule.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionSchedule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJob.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJob.cs index 73829e7a2f560..12705f550645f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJob.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJob.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobExtendedInfo.cs index 0d14fb533dad8..cb4c49565d2d6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobExtendedInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerExtendedInfo.cs index 5a51853a6b283..35d43551cd892 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerExtendedInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerInquiryInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerInquiryInfo.cs index 0780ad860b82a..a328f76cba3cd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerInquiryInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerInquiryInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadErrorInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadErrorInfo.cs index 678938c039d75..fbd42dc3cc50c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadErrorInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadErrorInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItemResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItemResourceList.cs index 83c2bd4e2825d..36c99388ab855 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItemResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItemResourceList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.cs index 65065646178ab..681937461233a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResourceList.cs index ee0656b603c4f..481e131c79a39 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResourceList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.cs index 72f6b26926fcd..aee8d52c51555 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRecoveryPoint.cs index 871213181761e..2dd3568f0548e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRecoveryPoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPointExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPointExtendedInfo.cs index 8302ed97accd5..02a68d7156064 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPointExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPointExtendedInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.cs index 04a1870bcf00d..25dd3f8fd0a76 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/YearlyRetentionSchedule.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/YearlyRetentionSchedule.cs index 13716ea34db90..61ab6f2930477 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/YearlyRetentionSchedule.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/YearlyRetentionSchedule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesBackup; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Internal/ChangeTrackingList.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..e0c7e0652299d --- /dev/null +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.RecoveryServicesDataReplication +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/AzStackHciFabricModelCustomProperties.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/AzStackHciFabricModelCustomProperties.cs index d130880ecea71..f27e12c5b76cf 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/AzStackHciFabricModelCustomProperties.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/AzStackHciFabricModelCustomProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models { diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationDraListResult.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationDraListResult.cs index 96a299abf5f32..dbee5ded5a729 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationDraListResult.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationDraListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationDraProperties.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationDraProperties.cs index 0343d55a2938f..ee97b47d1dcc5 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationDraProperties.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationDraProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models { diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEmailConfigurationListResult.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEmailConfigurationListResult.cs index b0a59c7d3c9eb..7b15951dffb06 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEmailConfigurationListResult.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEmailConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEmailConfigurationProperties.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEmailConfigurationProperties.cs index f3cb121bbe1a2..1fb42cb4e3fd8 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEmailConfigurationProperties.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEmailConfigurationProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models { diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEventListResult.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEventListResult.cs index a9cdeae65b3c0..37c121111ccd0 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEventListResult.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEventListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEventProperties.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEventProperties.cs index 70e811c0bd3ff..a3eb802c9cffd 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEventProperties.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationEventProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models { diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationFabricListResult.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationFabricListResult.cs index cbf4cba93b98c..a72923875b265 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationFabricListResult.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationFabricListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationFabricProperties.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationFabricProperties.cs index 6b4c48fb311c3..b21707ea403d4 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationFabricProperties.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationFabricProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models { diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationHealthErrorInfo.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationHealthErrorInfo.cs index cf25fb43350c3..d7d2acde53e53 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationHealthErrorInfo.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationHealthErrorInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models { diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationPolicyListResult.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationPolicyListResult.cs index b356987df1d63..a73efa55f56c4 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationPolicyListResult.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationProtectedItemListResult.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationProtectedItemListResult.cs index c0cc4a3a6d898..c23a5ec0e68c6 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationProtectedItemListResult.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationProtectedItemListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationProtectedItemProperties.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationProtectedItemProperties.cs index 40b95cfd6ccce..7bef55d46f177 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationProtectedItemProperties.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationProtectedItemProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models { diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationRecoveryPointListResult.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationRecoveryPointListResult.cs index 518e30780eacc..d443581eea7fd 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationRecoveryPointListResult.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationRecoveryPointListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationReplicationExtensionListResult.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationReplicationExtensionListResult.cs index 5e328b44325d4..9ba099c7fa042 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationReplicationExtensionListResult.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationReplicationExtensionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationTask.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationTask.cs index 7a7b25be12a08..24d6dad7c71d1 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationTask.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationTask.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationVaultListResult.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationVaultListResult.cs index 0a944fbcecd4e..ee57f5485cdc9 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationVaultListResult.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationVaultListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationWorkflowListResult.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationWorkflowListResult.cs index 4a85aba6a47df..86f29f3093b69 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationWorkflowListResult.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationWorkflowListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationWorkflowProperties.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationWorkflowProperties.cs index 353b98d7ee191..743af9f2bed48 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationWorkflowProperties.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DataReplicationWorkflowProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models { diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DeploymentPreflightModel.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DeploymentPreflightModel.cs index 3248e73faedf9..da3296bfe2c7e 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DeploymentPreflightModel.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/DeploymentPreflightModel.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models { diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/FailoverWorkflowModelCustomProperties.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/FailoverWorkflowModelCustomProperties.cs index da41ef8755e72..2b17744367b8b 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/FailoverWorkflowModelCustomProperties.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/FailoverWorkflowModelCustomProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models { diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/HyperVToAzStackHciProtectedItemModelCustomProperties.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/HyperVToAzStackHciProtectedItemModelCustomProperties.cs index 762af65419a62..34d0a3668aa34 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/HyperVToAzStackHciProtectedItemModelCustomProperties.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/HyperVToAzStackHciProtectedItemModelCustomProperties.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models { diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/HyperVToAzStackHciRecoveryPointModelCustomProperties.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/HyperVToAzStackHciRecoveryPointModelCustomProperties.cs index 87b3c85cf0eb9..10f1175e5420e 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/HyperVToAzStackHciRecoveryPointModelCustomProperties.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/HyperVToAzStackHciRecoveryPointModelCustomProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models { diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/TestFailoverWorkflowModelCustomProperties.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/TestFailoverWorkflowModelCustomProperties.cs index 65e6e8ef6b880..2ca40944b673e 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/TestFailoverWorkflowModelCustomProperties.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/TestFailoverWorkflowModelCustomProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models { diff --git a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/VMwareToAzStackHciProtectedItemModelCustomProperties.cs b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/VMwareToAzStackHciProtectedItemModelCustomProperties.cs index bcaa4c217a87e..b805597a2776d 100644 --- a/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/VMwareToAzStackHciProtectedItemModelCustomProperties.cs +++ b/sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/src/Generated/Models/VMwareToAzStackHciProtectedItemModelCustomProperties.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesDataReplication; namespace Azure.ResourceManager.RecoveryServicesDataReplication.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Internal/ChangeTrackingList.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..40989a4b23995 --- /dev/null +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.RecoveryServicesSiteRecovery +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AAddDisksContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AAddDisksContent.cs index ccba99b186475..3ad60ee227323 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AAddDisksContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AAddDisksContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ACreateProtectionIntentContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ACreateProtectionIntentContent.cs index 13ce307659d59..8c0f02297d61d 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ACreateProtectionIntentContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ACreateProtectionIntentContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AEnableProtectionContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AEnableProtectionContent.cs index ae43f9bc4bcea..fe2553343c643 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AEnableProtectionContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AEnableProtectionContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs index 13febeed3482e..045d4ae1fa268 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AProtectedDiskDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs index 2ec408ef5018c..66babc4b05b15 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AProtectedManagedDiskDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ARecoveryPointDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ARecoveryPointDetails.cs index 24b865b07d274..3f9776da27615 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ARecoveryPointDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ARecoveryPointDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ARemoveDisksContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ARemoveDisksContent.cs index 81b2daa74bb0e..3292229839d2c 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ARemoveDisksContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ARemoveDisksContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AReplicationDetails.cs index 7b7def36b60b4..fb7144a5aab05 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AReplicationDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AReplicationIntentDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AReplicationIntentDetails.cs index 92d83fee88813..ea9fb14d1680f 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AReplicationIntentDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AReplicationIntentDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AReprotectContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AReprotectContent.cs index db6cecf8011bc..82951266749b7 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AReprotectContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AReprotectContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ASwitchProtectionContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ASwitchProtectionContent.cs index 828176c040f68..2c09f581f6fff 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ASwitchProtectionContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2ASwitchProtectionContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemContent.cs index e107669dc4aec..185c72fd197cc 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AUpdateReplicationProtectedItemContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AVmSyncedConfigDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AVmSyncedConfigDetails.cs index 6c5f0df49d81e..7a1ff4fc42258 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AVmSyncedConfigDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/A2AVmSyncedConfigDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ApplianceMonitoringDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ApplianceMonitoringDetails.cs index 7cd3f2f1e446b..c74c36819f04c 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ApplianceMonitoringDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ApplianceMonitoringDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/AsrTask.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/AsrTask.cs index 7bc03d1b8fe03..49982de7f20a5 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/AsrTask.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/AsrTask.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ConsistencyCheckTaskDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ConsistencyCheckTaskDetails.cs index 80f9b1aa89a3b..ef1de563a217d 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ConsistencyCheckTaskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ConsistencyCheckTaskDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/FailoverJobDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/FailoverJobDetails.cs index 329807435b338..b716eeec94c4f 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/FailoverJobDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/FailoverJobDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/FailoverProcessServerProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/FailoverProcessServerProperties.cs index 3d825d5053e44..552cf63d7003a 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/FailoverProcessServerProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/FailoverProcessServerProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/GatewayOperationDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/GatewayOperationDetails.cs index c2d866889914a..c3494d6d61e8e 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/GatewayOperationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/GatewayOperationDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HealthErrorSummary.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HealthErrorSummary.cs index 1e2b94cc65a18..f83464cb8d8d4 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HealthErrorSummary.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HealthErrorSummary.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVFailoverIPConfigDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVFailoverIPConfigDetails.cs index b7f4f7703547f..606fedfba4410 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVFailoverIPConfigDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVFailoverIPConfigDetails.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Net; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVIPConfigDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVIPConfigDetails.cs index 370e7617ac11b..8d86ea51e9e77 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVIPConfigDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVIPConfigDetails.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Net; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzureEnableProtectionContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzureEnableProtectionContent.cs index 04fd7ba1c0ed6..d4f9c56d2ab1b 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzureEnableProtectionContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzureEnableProtectionContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzurePolicyContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzurePolicyContent.cs index d59e233f962ee..5a2d7b2d81bbe 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzurePolicyContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzurePolicyContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzureReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzureReplicationDetails.cs index 2e54ec4d862a6..8d275999f961d 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzureReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzureReplicationDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemContent.cs index 3850be4c645fa..4951043a4d0c7 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaAzureUpdateReplicationProtectedItemContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaBaseReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaBaseReplicationDetails.cs index 2d51d9c1dfd16..6077c6f9a8faa 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaBaseReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaBaseReplicationDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaBlueReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaBlueReplicationDetails.cs index c7091fef532d7..2a33570aa1e42 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaBlueReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaBlueReplicationDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaReplicationDetails.cs index 6c1ae8bc2e7ca..42d331a8fe353 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVReplicaReplicationDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVSiteDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVSiteDetails.cs index 9614eb8e666dc..3b3cb0f3ebde2 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVSiteDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVSiteDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVVmDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVVmDetails.cs index 4a0a6ff65e8f3..4b01b80befc90 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVVmDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/HyperVVmDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2EnableProtectionContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2EnableProtectionContent.cs index 0053d6c8850b8..dadfd58e022a4 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2EnableProtectionContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2EnableProtectionContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2ReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2ReplicationDetails.cs index 8ed8ff2e203a7..64abbac32444d 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2ReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2ReplicationDetails.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Net; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2ReprotectContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2ReprotectContent.cs index 9eb52d9c93c5e..9a5b77809a61f 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2ReprotectContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2ReprotectContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2UpdateReplicationProtectedItemContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2UpdateReplicationProtectedItemContent.cs index c3ab2f6be1fc9..ce64827c9f775 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2UpdateReplicationProtectedItemContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageAzureV2UpdateReplicationProtectedItemContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageDiskDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageDiskDetails.cs index 9db669a9bad12..031f260253ffd 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageDiskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageDiskDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageDiskExclusionContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageDiskExclusionContent.cs index 787302862c1ef..3cf5a5d0318ff 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageDiskExclusionContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageDiskExclusionContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageEnableProtectionContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageEnableProtectionContent.cs index b8f57b11be7eb..a6d2dc074313a 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageEnableProtectionContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageEnableProtectionContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmApplianceDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmApplianceDetails.cs index 5d073e8134540..4bfdeb7e39024 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmApplianceDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmApplianceDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmApplianceSpecificDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmApplianceSpecificDetails.cs index 2086d3f810c06..f90c173f3a762 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmApplianceSpecificDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmApplianceSpecificDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmDiscoveredProtectedVmDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmDiscoveredProtectedVmDetails.cs index 8cae6753d7eb8..4b2c5226ffd8e 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmDiscoveredProtectedVmDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmDiscoveredProtectedVmDetails.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmEnableProtectionContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmEnableProtectionContent.cs index f62b62af9e297..2b6e480f4b9fe 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmEnableProtectionContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmEnableProtectionContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFabricSpecificDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFabricSpecificDetails.cs index cbee6907737f0..8e7a87fce1687 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFabricSpecificDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFabricSpecificDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFailbackDiscoveredProtectedVmDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFailbackDiscoveredProtectedVmDetails.cs index b93d25cc7a189..efdbb18b83fc4 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFailbackDiscoveredProtectedVmDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFailbackDiscoveredProtectedVmDetails.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFailbackMobilityAgentDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFailbackMobilityAgentDetails.cs index ba7788425c107..36642ca5a5bce 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFailbackMobilityAgentDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFailbackMobilityAgentDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFailbackReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFailbackReplicationDetails.cs index c059414ce1bb9..746ec3ac5ab79 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFailbackReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmFailbackReplicationDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmMobilityAgentDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmMobilityAgentDetails.cs index 3a07ecd2bfd20..a17e13714de94 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmMobilityAgentDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmMobilityAgentDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmReplicationDetails.cs index 847fff30c14a8..ad4e51686bfc5 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmReplicationDetails.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Net; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmUpdateReplicationProtectedItemContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmUpdateReplicationProtectedItemContent.cs index 4fe525403e243..aeb5c9e1f9920 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmUpdateReplicationProtectedItemContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageRcmUpdateReplicationProtectedItemContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageReplicationDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageReplicationDetails.cs index 7fab9cf19467a..b8e5e45937848 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageReplicationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageReplicationDetails.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Net; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageReprotectContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageReprotectContent.cs index d5cb370b6c171..fe94b84a8c7d7 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageReprotectContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InMageReprotectContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InconsistentVmDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InconsistentVmDetails.cs index c97db7d7b9c17..1247bebe72ce3 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InconsistentVmDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InconsistentVmDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InlineWorkflowTaskDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InlineWorkflowTaskDetails.cs index 43f48d8b8da94..b0b959af1101e 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InlineWorkflowTaskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/InlineWorkflowTaskDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MarsAgentDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MarsAgentDetails.cs index cb174060e1a29..462d0655c69ca 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MarsAgentDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MarsAgentDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MasterTargetServer.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MasterTargetServer.cs index b6649f3311bfc..d143ef41cc4e0 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MasterTargetServer.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MasterTargetServer.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MigrationRecoveryPointListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MigrationRecoveryPointListResult.cs index 82a06ef0def85..5ccccf559c357 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MigrationRecoveryPointListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/MigrationRecoveryPointListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/OSUpgradeSupportedVersions.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/OSUpgradeSupportedVersions.cs index 408272b8f630d..dac16c24fcd59 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/OSUpgradeSupportedVersions.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/OSUpgradeSupportedVersions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ProtectionContainerMappingListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ProtectionContainerMappingListResult.cs index 098cbb3b50bd8..028ac670fbdcf 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ProtectionContainerMappingListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ProtectionContainerMappingListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ProtectionContainerMappingProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ProtectionContainerMappingProperties.cs index c6e2baa1c253f..0f56677c4ea73 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ProtectionContainerMappingProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ProtectionContainerMappingProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/PushInstallerDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/PushInstallerDetails.cs index 44cafef1abdbd..33cf56be43690 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/PushInstallerDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/PushInstallerDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RcmProxyDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RcmProxyDetails.cs index ba670816eac61..4f56c33b21ba3 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RcmProxyDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RcmProxyDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RecoveryPlanPlannedFailoverProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RecoveryPlanPlannedFailoverProperties.cs index e5685b583f9ff..f9c7c55299528 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RecoveryPlanPlannedFailoverProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RecoveryPlanPlannedFailoverProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverProperties.cs index 292864f8a8722..e42333ac0b96e 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RecoveryPlanTestFailoverProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RecoveryPlanUnplannedFailoverProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RecoveryPlanUnplannedFailoverProperties.cs index dcdbe979aa9ea..2dbead48890a6 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RecoveryPlanUnplannedFailoverProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/RecoveryPlanUnplannedFailoverProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationAgentDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationAgentDetails.cs index e200844b258fe..2a3060528e8bd 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationAgentDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationAgentDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationEligibilityResultListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationEligibilityResultListResult.cs index 3e84e863d3417..5328819d308ce 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationEligibilityResultListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationEligibilityResultListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationEligibilityResultProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationEligibilityResultProperties.cs index e4d08569e7b41..f30cc4f8d090a 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationEligibilityResultProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationEligibilityResultProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectedItemListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectedItemListResult.cs index 1d93013329e77..b4be32862d67d 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectedItemListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectedItemListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectedItemProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectedItemProperties.cs index d076810eac1ab..b10d0328dfc04 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectedItemProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectedItemProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectionIntentListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectionIntentListResult.cs index fc6af4db97e13..9b12d0d214921 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectionIntentListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReplicationProtectionIntentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReprotectAgentDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReprotectAgentDetails.cs index 7cd78d8c00316..bb414d79dce86 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReprotectAgentDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ReprotectAgentDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ResolveHealthContentProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ResolveHealthContentProperties.cs index b55ff8204b307..dcfcc0a7b97e7 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ResolveHealthContentProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ResolveHealthContentProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ResourceHealthSummary.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ResourceHealthSummary.cs index 3c31fec623890..331484254b274 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ResourceHealthSummary.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/ResourceHealthSummary.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAgentDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAgentDetails.cs index bac1164cf0ecd..645d20339a945 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAgentDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAgentDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAlertListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAlertListResult.cs index a92034cc61a8e..b3b0dbf18eaeb 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAlertListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAlertListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAlertProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAlertProperties.cs index fe8204b16780e..52a44d7d43407 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAlertProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryAlertProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryApplianceListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryApplianceListResult.cs index 8c22d80b58fcf..bb9baa5ea6766 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryApplianceListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryApplianceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryConfigureAlertProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryConfigureAlertProperties.cs index bc837a0ec8595..0175a4ae3ebec 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryConfigureAlertProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryConfigureAlertProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryCreateProtectionContainerProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryCreateProtectionContainerProperties.cs index 2c40d6041b328..2dd10bf4269b5 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryCreateProtectionContainerProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryCreateProtectionContainerProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryCreateRecoveryPlanProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryCreateRecoveryPlanProperties.cs index 246228f526fc4..926f714baf493 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryCreateRecoveryPlanProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryCreateRecoveryPlanProperties.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryDraDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryDraDetails.cs index 85b2a29cd311b..db3bb48813549 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryDraDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryDraDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryEventProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryEventProperties.cs index 8cc824fd2c29a..dcc9b6747e1db 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryEventProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryEventProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricListResult.cs index 0f37c89119203..73ad8f74de52d 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricProperties.cs index 780cccbad358d..6bb55caf19e20 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricProviderSpecificDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricProviderSpecificDetails.cs index 45bae9dfc83a9..95b9d0556cc9d 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricProviderSpecificDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryFabricProviderSpecificDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryGroupTaskDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryGroupTaskDetails.cs index edc38b4dd284e..6e63fb6bd52c1 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryGroupTaskDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryGroupTaskDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryHealthError.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryHealthError.cs index e8db441355d0a..3859c4e4c68ea 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryHealthError.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryHealthError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryJobListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryJobListResult.cs index bf0978a040e79..5acba45b084cb 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryJobListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryJobListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryJobProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryJobProperties.cs index 3c659a598820f..eab308427887e 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryJobProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryJobProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryListResult.cs index c1cfbcae32e6d..b4c4598dc97a5 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryLogicalNetworkListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryLogicalNetworkListResult.cs index 3c0455a044272..338eeac6bfb9e 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryLogicalNetworkListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryLogicalNetworkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryMigrationItemListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryMigrationItemListResult.cs index 8313788ae0637..4c39123ac4d3f 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryMigrationItemListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryMigrationItemListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryMigrationItemProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryMigrationItemProperties.cs index 45bd3ebff8ad0..3130d3f48c45e 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryMigrationItemProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryMigrationItemProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkListResult.cs index c173052fa07f9..cc01bd59e4135 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkMappingListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkMappingListResult.cs index cce99cc1caa67..1bdca0fed1031 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkMappingListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkMappingListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkProperties.cs index fa2687c44e110..e452d2bb08a4d 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryNetworkProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPlanGroup.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPlanGroup.cs index 4927e2f19b1dc..338dc45c8ed5a 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPlanGroup.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPlanGroup.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPointListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPointListResult.cs index f41fe0cd2eaaa..f7f94acf78d9a 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPointListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPointListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPolicyListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPolicyListResult.cs index 50df5522c1c52..97a4e2d4b2ddb 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPolicyListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProcessServer.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProcessServer.cs index ab8819887c31d..a352de57fc576 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProcessServer.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProcessServer.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProcessServerDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProcessServerDetails.cs index b8b69f42b2319..08f0d9aea7269 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProcessServerDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProcessServerDetails.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Net; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectableItemListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectableItemListResult.cs index d64b39947be6d..7b9e3c6f33c27 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectableItemListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectableItemListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectableItemProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectableItemProperties.cs index e7085f29d76a6..dda16b8087676 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectableItemProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectableItemProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectionContainerListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectionContainerListResult.cs index f3d327ca9d692..dcb0c0404570b 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectionContainerListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryProtectionContainerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryRecoveryPlanListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryRecoveryPlanListResult.cs index c557239e5a46c..4f1b08679d9e6 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryRecoveryPlanListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryRecoveryPlanListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryRecoveryPlanProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryRecoveryPlanProperties.cs index 86a24a474e21b..7ce1df2f80820 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryRecoveryPlanProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryRecoveryPlanProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryServicesProviderListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryServicesProviderListResult.cs index 2df8dd3aafb4f..e3fe1ec679aff 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryServicesProviderListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryServicesProviderListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryServicesProviderProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryServicesProviderProperties.cs index a935566a7b053..9eac842d48188 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryServicesProviderProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryServicesProviderProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySubnet.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySubnet.cs index b4f811a388496..7e3f9fe819fe2 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySubnet.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySubnet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySupportedOSDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySupportedOSDetails.cs index fc5f181c42052..fef75a60e9879 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySupportedOSDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySupportedOSDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySupportedOSProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySupportedOSProperties.cs index 3a81ea59f713d..ddac0ba98f948 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySupportedOSProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySupportedOSProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySupportedOSProperty.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySupportedOSProperty.cs index 4325b39d92ea4..cbd15c1131c39 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySupportedOSProperty.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoverySupportedOSProperty.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVCenterListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVCenterListResult.cs index c1e8f2106b330..917bdd9f97a21 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVCenterListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVCenterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVCenterProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVCenterProperties.cs index 289b77cc16c60..a8d87ea7c285b 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVCenterProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVCenterProperties.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVaultSettingListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVaultSettingListResult.cs index a24aab2a0bae6..5a41e91fb0d17 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVaultSettingListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/SiteRecoveryVaultSettingListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/StorageClassificationListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/StorageClassificationListResult.cs index 3ed66dc4b9ae1..f5f82177f1b41 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/StorageClassificationListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/StorageClassificationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/StorageClassificationMappingListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/StorageClassificationMappingListResult.cs index 54fd0d3272d19..bb8e6c66f6677 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/StorageClassificationMappingListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/StorageClassificationMappingListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/TargetComputeSizeListResult.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/TargetComputeSizeListResult.cs index 93b8205293d9c..e51c92b14b635 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/TargetComputeSizeListResult.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/TargetComputeSizeListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/TargetComputeSizeProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/TargetComputeSizeProperties.cs index 055daee0785c1..1f8f676b6f0a0 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/TargetComputeSizeProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/TargetComputeSizeProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/TestFailoverJobDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/TestFailoverJobDetails.cs index af924c71018af..73db3ba0271e0 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/TestFailoverJobDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/TestFailoverJobDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/UpdateRecoveryPlanContentProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/UpdateRecoveryPlanContentProperties.cs index 6a2f09e179c39..6c9829a700e9c 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/UpdateRecoveryPlanContentProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/UpdateRecoveryPlanContentProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/UpdateReplicationProtectedItemProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/UpdateReplicationProtectedItemProperties.cs index b5f1fa7392d9e..b7823e689de77 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/UpdateReplicationProtectedItemProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/UpdateReplicationProtectedItemProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtMigrationDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtMigrationDetails.cs index 62445a1c3fad9..96d9f4cf7099e 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtMigrationDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtMigrationDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtProtectionContainerMappingDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtProtectionContainerMappingDetails.cs index 7d257bc19e9d9..5e12fdafff96a 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtProtectionContainerMappingDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtProtectionContainerMappingDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtTestMigrateContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtTestMigrateContent.cs index 4a665b37459e5..8138812d36b59 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtTestMigrateContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtTestMigrateContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtUpdateMigrationItemContent.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtUpdateMigrationItemContent.cs index 186ab3a1c2205..9c406b7abbbb2 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtUpdateMigrationItemContent.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareCbtUpdateMigrationItemContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareDetails.cs index 7269439667de2..d029fdf3f946a 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareDetails.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareV2FabricSpecificDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareV2FabricSpecificDetails.cs index 9c14d7ae80451..e2578b59a4e60 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareV2FabricSpecificDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareV2FabricSpecificDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareVmDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareVmDetails.cs index b1f4aa8c461d9..02e6ff053dd77 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareVmDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VMwareVmDetails.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VaultHealthProperties.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VaultHealthProperties.cs index 8ba08d099855e..1e69187f02b50 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VaultHealthProperties.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VaultHealthProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VmNicContentDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VmNicContentDetails.cs index 8bf7bbb70b4f4..c6ff462e343d2 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VmNicContentDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VmNicContentDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VmNicDetails.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VmNicDetails.cs index 1fcdaa160aded..59f896251e8c0 100644 --- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VmNicDetails.cs +++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Models/VmNicDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServicesSiteRecovery; namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Models { diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Internal/ChangeTrackingList.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..44b51ff15ff3c --- /dev/null +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.RecoveryServices +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/CapabilitiesProperties.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/CapabilitiesProperties.cs index 734a60b11a0f1..0ec9184116bca 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/CapabilitiesProperties.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/CapabilitiesProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServices; namespace Azure.ResourceManager.RecoveryServices.Models { diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/CapabilitiesResultProperties.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/CapabilitiesResultProperties.cs index 3bf62effc771e..70b42dc6f1b12 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/CapabilitiesResultProperties.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/CapabilitiesResultProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServices; namespace Azure.ResourceManager.RecoveryServices.Models { diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/DnsZoneResult.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/DnsZoneResult.cs index d89b035fb5ede..de7e413e90cf5 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/DnsZoneResult.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/DnsZoneResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServices; namespace Azure.ResourceManager.RecoveryServices.Models { diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/PrivateLinkResources.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/PrivateLinkResources.cs index 55a12fa98c181..8549a439d6dc8 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/PrivateLinkResources.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/PrivateLinkResources.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServices; namespace Azure.ResourceManager.RecoveryServices.Models diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnection.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnection.cs index 31c00f1abaaca..7ba91bae683a6 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnection.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnection.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RecoveryServices; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.RecoveryServices.Models diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesVaultListResult.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesVaultListResult.cs index 4ec35f51e2d99..8f48e98eb1cba 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesVaultListResult.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesVaultListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RecoveryServices; namespace Azure.ResourceManager.RecoveryServices.Models diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesVaultProperties.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesVaultProperties.cs index 43f23bfd0dcf4..ece757231619c 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesVaultProperties.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesVaultProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServices; namespace Azure.ResourceManager.RecoveryServices.Models { diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/ReplicationUsageListResult.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/ReplicationUsageListResult.cs index e2a04578af3ef..802698b6e6e5a 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/ReplicationUsageListResult.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/ReplicationUsageListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServices; namespace Azure.ResourceManager.RecoveryServices.Models { diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/VaultUsageListResult.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/VaultUsageListResult.cs index 2adaf2f61bfd2..facb82a7cbaf7 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/VaultUsageListResult.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/VaultUsageListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RecoveryServices; namespace Azure.ResourceManager.RecoveryServices.Models { diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Internal/ChangeTrackingList.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..276ccb5b16419 --- /dev/null +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Redis +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCacheAccessPolicyAssignmentList.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCacheAccessPolicyAssignmentList.cs index 69398402a46cb..28cd6209e99a5 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCacheAccessPolicyAssignmentList.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCacheAccessPolicyAssignmentList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Redis; namespace Azure.ResourceManager.Redis.Models diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCacheAccessPolicyList.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCacheAccessPolicyList.cs index 5214a9dfef897..15864b187ec9d 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCacheAccessPolicyList.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCacheAccessPolicyList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Redis; namespace Azure.ResourceManager.Redis.Models diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCreateOrUpdateContent.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCreateOrUpdateContent.cs index 29b5d5ca07994..1e1605444f3ab 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCreateOrUpdateContent.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisCreateOrUpdateContent.cs @@ -10,6 +10,7 @@ using System.Net; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Redis; namespace Azure.ResourceManager.Redis.Models { diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisFirewallRuleListResult.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisFirewallRuleListResult.cs index 97aa39f0161b3..b7c8a2ab02fa5 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisFirewallRuleListResult.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisFirewallRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Redis; namespace Azure.ResourceManager.Redis.Models diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisLinkedServerWithPropertiesList.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisLinkedServerWithPropertiesList.cs index 58e3f46f196a9..768a40a10e707 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisLinkedServerWithPropertiesList.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisLinkedServerWithPropertiesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Redis; namespace Azure.ResourceManager.Redis.Models diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisListResult.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisListResult.cs index e5ece92d4ee67..b97da70323caf 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisListResult.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Redis; namespace Azure.ResourceManager.Redis.Models diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPatchScheduleListResult.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPatchScheduleListResult.cs index a70d902505e4a..0db670629203e 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPatchScheduleListResult.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPatchScheduleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Redis; namespace Azure.ResourceManager.Redis.Models diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateEndpointConnectionListResult.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateEndpointConnectionListResult.cs index ed2a76f005d1e..5fa9a0fd30e9d 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateEndpointConnectionListResult.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Redis; namespace Azure.ResourceManager.Redis.Models diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateLinkResource.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateLinkResource.cs index fe31316ad72c3..ae41aba2b4753 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateLinkResource.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateLinkResource.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Redis; namespace Azure.ResourceManager.Redis.Models { diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateLinkResourceListResult.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateLinkResourceListResult.cs index dd9efaab5441f..775d928c0f3e2 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateLinkResourceListResult.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisPrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Redis; namespace Azure.ResourceManager.Redis.Models { diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisRebootContent.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisRebootContent.cs index 5167491920cd8..fa957001b40da 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisRebootContent.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisRebootContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Redis; namespace Azure.ResourceManager.Redis.Models { diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisUpgradeNotificationListResponse.cs b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisUpgradeNotificationListResponse.cs index ee63245a39d84..ba170d9deb34f 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisUpgradeNotificationListResponse.cs +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Generated/Models/RedisUpgradeNotificationListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Redis; namespace Azure.ResourceManager.Redis.Models { diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Internal/ChangeTrackingList.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..2bac3f18816a2 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.RedisEnterprise +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/FlushRedisEnterpriseDatabaseContent.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/FlushRedisEnterpriseDatabaseContent.cs index 4b84c1039e3b3..b69bbc854357d 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/FlushRedisEnterpriseDatabaseContent.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/FlushRedisEnterpriseDatabaseContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.RedisEnterprise; namespace Azure.ResourceManager.RedisEnterprise.Models { diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterList.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterList.cs index c0d3203ddf898..5e3c032d5fabf 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterList.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RedisEnterprise; namespace Azure.ResourceManager.RedisEnterprise.Models diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabaseGeoReplication.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabaseGeoReplication.cs index 8d45da3b4eca2..c71506ded33e6 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabaseGeoReplication.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabaseGeoReplication.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RedisEnterprise; namespace Azure.ResourceManager.RedisEnterprise.Models { diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabaseList.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabaseList.cs index fc14189830b53..bdbee59e3dca9 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabaseList.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabaseList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RedisEnterprise; namespace Azure.ResourceManager.RedisEnterprise.Models diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabasePatch.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabasePatch.cs index e65afc93ecd97..5731a6754d4eb 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabasePatch.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabasePatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RedisEnterprise; namespace Azure.ResourceManager.RedisEnterprise.Models { diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateEndpointConnectionListResult.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateEndpointConnectionListResult.cs index 73889b820f932..5e7e5681e69c3 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateEndpointConnectionListResult.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.RedisEnterprise; namespace Azure.ResourceManager.RedisEnterprise.Models diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateLinkResource.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateLinkResource.cs index 524e352b53abc..cc61ff81fa791 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateLinkResource.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateLinkResource.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.RedisEnterprise; namespace Azure.ResourceManager.RedisEnterprise.Models { diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateLinkResourceListResult.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateLinkResourceListResult.cs index bae655d2491b9..a441b57b02ba8 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateLinkResourceListResult.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterprisePrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.RedisEnterprise; namespace Azure.ResourceManager.RedisEnterprise.Models { diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Internal/ChangeTrackingList.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..3430fc54684fd --- /dev/null +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Relay +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/AuthorizationRuleListResult.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/AuthorizationRuleListResult.cs index a847aee38892a..76bd068e25899 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/AuthorizationRuleListResult.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/AuthorizationRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Relay; namespace Azure.ResourceManager.Relay.Models diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/HybridConnectionListResult.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/HybridConnectionListResult.cs index a3710da4d239c..f488b0b7deca7 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/HybridConnectionListResult.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/HybridConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Relay; namespace Azure.ResourceManager.Relay.Models diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/PrivateLinkResourcesListResult.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/PrivateLinkResourcesListResult.cs index 6cae3b4eb95ff..7a07e8c1ffc37 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/PrivateLinkResourcesListResult.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/PrivateLinkResourcesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Relay; namespace Azure.ResourceManager.Relay.Models diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayNamespaceListResult.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayNamespaceListResult.cs index dd7b5d419fbb0..0ec18a0be1fcf 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayNamespaceListResult.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayNamespaceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Relay; namespace Azure.ResourceManager.Relay.Models diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayPrivateEndpointConnectionListResult.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayPrivateEndpointConnectionListResult.cs index 3a4bfca34f778..c6f832015e926 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayPrivateEndpointConnectionListResult.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/RelayPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Relay; namespace Azure.ResourceManager.Relay.Models diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/WcfRelaysListResult.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/WcfRelaysListResult.cs index d20466f9879e9..6d9d40dcb6897 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/WcfRelaysListResult.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/Models/WcfRelaysListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Relay; namespace Azure.ResourceManager.Relay.Models diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Internal/ChangeTrackingList.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..8fd6b6fbcee04 --- /dev/null +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.MixedReality.RemoteRendering +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RemoteRenderingServiceError.Serialization.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RemoteRenderingServiceError.Serialization.cs index 3bef34384ecdd..bb995a9b68f84 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RemoteRenderingServiceError.Serialization.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RemoteRenderingServiceError.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.MixedReality.RemoteRendering { diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RemoteRenderingServiceError.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RemoteRenderingServiceError.cs index 3c1800c9e2394..1495e7ecc84f3 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RemoteRenderingServiceError.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RemoteRenderingServiceError.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.MixedReality.RemoteRendering { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Internal/ChangeTrackingList.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..e21cc92e69ea9 --- /dev/null +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Reservations +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/AppliedReservationList.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/AppliedReservationList.cs index f945c3f4b23fa..4e2d806d9d28f 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/AppliedReservationList.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/AppliedReservationList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/AvailableScopeRequestProperties.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/AvailableScopeRequestProperties.cs index b52a4ae4b0703..b7faa958b2ba7 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/AvailableScopeRequestProperties.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/AvailableScopeRequestProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CalculateExchangeContentProperties.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CalculateExchangeContentProperties.cs index 32b3fd46388df..aca31e10c1050 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CalculateExchangeContentProperties.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CalculateExchangeContentProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CalculateExchangeResultProperties.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CalculateExchangeResultProperties.cs index 93a4fe4c2c1e5..3934c19d138aa 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CalculateExchangeResultProperties.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CalculateExchangeResultProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CalculatePriceResultProperties.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CalculatePriceResultProperties.cs index bba5cea58dd42..c24dedd619f3c 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CalculatePriceResultProperties.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CalculatePriceResultProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CatalogsResult.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CatalogsResult.cs index 2db526047e0d4..8206968b581d4 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CatalogsResult.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/CatalogsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ChangeDirectoryDetail.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ChangeDirectoryDetail.cs index c771a42aed551..8f2210a1041ad 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ChangeDirectoryDetail.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ChangeDirectoryDetail.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ExchangePolicyErrors.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ExchangePolicyErrors.cs index fb72845143c55..5ff3b947edfc9 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ExchangePolicyErrors.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ExchangePolicyErrors.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ExchangeResultProperties.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ExchangeResultProperties.cs index 2ac954a0964b4..05ac691a2fd58 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ExchangeResultProperties.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ExchangeResultProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/MergeContent.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/MergeContent.cs index de5e26f40d99f..d2ae50c6c9972 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/MergeContent.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/MergeContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/QuotaLimits.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/QuotaLimits.cs index ad538edb889a2..4274bb6d703de 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/QuotaLimits.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/QuotaLimits.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/QuotaRequestDetailsList.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/QuotaRequestDetailsList.cs index 8b6307f622765..86ff8d1891e92 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/QuotaRequestDetailsList.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/QuotaRequestDetailsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationCatalog.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationCatalog.cs index 511cbbda489ef..4638716a61f62 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationCatalog.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationCatalog.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationDetailPatch.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationDetailPatch.cs index b6a4856e4ebfb..2ed04148a2e4b 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationDetailPatch.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationDetailPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationList.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationList.cs index 5982e9bfeb8ca..d57112fc57f02 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationList.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationMergeProperties.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationMergeProperties.cs index 69400d5688164..603400dbdc36a 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationMergeProperties.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationMergeProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationOrderBillingPlanInformation.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationOrderBillingPlanInformation.cs index 449f5d943ffeb..bfc12e915a0d8 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationOrderBillingPlanInformation.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationOrderBillingPlanInformation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationOrderList.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationOrderList.cs index da4694074a71c..0781bc400344f 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationOrderList.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationOrderList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationProperties.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationProperties.cs index d7f2e5f7e58c5..7dab99cf70edb 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationProperties.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationPropertiesUtilization.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationPropertiesUtilization.cs index 238140b566466..10c21f57161a0 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationPropertiesUtilization.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationPropertiesUtilization.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationPurchaseContent.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationPurchaseContent.cs index c6b3aa771377f..98b35ba631d3c 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationPurchaseContent.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationPurchaseContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationRefundPolicyResultProperty.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationRefundPolicyResultProperty.cs index 48eefdd4df554..380ae59c92666 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationRefundPolicyResultProperty.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationRefundPolicyResultProperty.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationSplitProperties.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationSplitProperties.cs index 539d6119780a7..29ab820d0c252 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationSplitProperties.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationSplitProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationsListResult.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationsListResult.cs index de9b9d631be85..411b3a2b68b37 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationsListResult.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/ReservationsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/SkuRestriction.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/SkuRestriction.cs index 2416d60c9093c..3a491c6e121e2 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/SkuRestriction.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/SkuRestriction.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/SplitContent.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/SplitContent.cs index 445c71424d3bb..10089874f5c77 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/SplitContent.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/SplitContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/SubscriptionScopeProperties.cs b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/SubscriptionScopeProperties.cs index 0e6ab990aa7dd..c4a633a44302d 100644 --- a/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/SubscriptionScopeProperties.cs +++ b/sdk/reservations/Azure.ResourceManager.Reservations/src/Generated/Models/SubscriptionScopeProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Reservations; namespace Azure.ResourceManager.Reservations.Models { diff --git a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Internal/ChangeTrackingList.cs b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..01ca8aef9da9e --- /dev/null +++ b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ResourceConnector +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceClusterUserCredentialResult.cs b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceClusterUserCredentialResult.cs index 3d5cd1e5ada94..a4160c2d026e5 100644 --- a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceClusterUserCredentialResult.cs +++ b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceClusterUserCredentialResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceConnector; namespace Azure.ResourceManager.ResourceConnector.Models { diff --git a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceClusterUserKeysResult.cs b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceClusterUserKeysResult.cs index b1565b75f27fb..1b809dad10827 100644 --- a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceClusterUserKeysResult.cs +++ b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceClusterUserKeysResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ResourceConnector; namespace Azure.ResourceManager.ResourceConnector.Models { diff --git a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceListResult.cs b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceListResult.cs index 0a2ea61f248c7..5cebd786a7067 100644 --- a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceListResult.cs +++ b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ResourceConnector; namespace Azure.ResourceManager.ResourceConnector.Models diff --git a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceUpgradeGraphProperties.cs b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceUpgradeGraphProperties.cs index 083647ac8d957..e460f4796df1a 100644 --- a/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceUpgradeGraphProperties.cs +++ b/sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/src/Generated/Models/ApplianceUpgradeGraphProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceConnector; namespace Azure.ResourceManager.ResourceConnector.Models { diff --git a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Internal/ChangeTrackingList.cs b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..d706dd8a67e11 --- /dev/null +++ b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ResourceGraph +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResourceQueryContent.cs b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResourceQueryContent.cs index 88f170262d721..9e1f0a855ea03 100644 --- a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResourceQueryContent.cs +++ b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResourceQueryContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceGraph; namespace Azure.ResourceManager.ResourceGraph.Models { diff --git a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResourceQueryResult.cs b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResourceQueryResult.cs index 98d1ee1ecf119..dd0e8e9779b38 100644 --- a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResourceQueryResult.cs +++ b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResourceQueryResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceGraph; namespace Azure.ResourceManager.ResourceGraph.Models { diff --git a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResourcesHistoryContent.cs b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResourcesHistoryContent.cs index 4f4b3126075b2..5f644071c2e75 100644 --- a/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResourcesHistoryContent.cs +++ b/sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/src/Generated/Models/ResourcesHistoryContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceGraph; namespace Azure.ResourceManager.ResourceGraph.Models { diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Internal/ChangeTrackingList.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..26e7b9313eace --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ResourceHealth +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueActiveEventType.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueActiveEventType.cs index fd9780d578c27..2c7a33a5611f8 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueActiveEventType.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueActiveEventType.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceHealth; namespace Azure.ResourceManager.ResourceHealth.Models { diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueImpact.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueImpact.cs index 1a5b1feca6640..1007dd3f0472e 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueImpact.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueImpact.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceHealth; namespace Azure.ResourceManager.ResourceHealth.Models { diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueListResult.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueListResult.cs index 87367527d25f0..160740c001c9b 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueListResult.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ResourceHealth; namespace Azure.ResourceManager.ResourceHealth.Models diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityListResult.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityListResult.cs index d68a69187c4d3..e15e42c2ad10a 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityListResult.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ResourceHealth; namespace Azure.ResourceManager.ResourceHealth.Models diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataSupportedValueDetail.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataSupportedValueDetail.cs index ae04e046ae743..fd640e3f8d74a 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataSupportedValueDetail.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataSupportedValueDetail.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ResourceHealth; namespace Azure.ResourceManager.ResourceHealth.Models { diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthAvailabilityStatusProperties.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthAvailabilityStatusProperties.cs index 971f7c6b6037a..01b92063ab814 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthAvailabilityStatusProperties.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthAvailabilityStatusProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceHealth; namespace Azure.ResourceManager.ResourceHealth.Models { diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpact.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpact.cs index 19655f922f56c..83fe393f29700 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpact.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpact.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceHealth; namespace Azure.ResourceManager.ResourceHealth.Models { diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpactedServiceRegion.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpactedServiceRegion.cs index 4b471d2c3601f..38ad827653984 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpactedServiceRegion.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpactedServiceRegion.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceHealth; namespace Azure.ResourceManager.ResourceHealth.Models { diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventRecommendedActions.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventRecommendedActions.cs index 1d19268d258aa..51d2049664be2 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventRecommendedActions.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventRecommendedActions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceHealth; namespace Azure.ResourceManager.ResourceHealth.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Internal/ChangeTrackingList.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..1837046c52831 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/OperationStatusResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/OperationStatusResult.cs index 139012b29564a..dbcc6c8c5ce07 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/OperationStatusResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/OperationStatusResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Custom/HelperSuppressions.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Custom/HelperSuppressions.cs index 798be0ae6cae1..826e21346e16d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Custom/HelperSuppressions.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Custom/HelperSuppressions.cs @@ -4,3 +4,4 @@ using Azure.Core; [assembly: CodeGenSuppressType("Azure.ResourceManager.Optional")] +[assembly: CodeGenSuppressType("Azure.ResourceManager.ChangeTrackingList")] diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/ManagementGroupData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/ManagementGroupData.cs index 6309fcba0b5a8..7cd22d2a8d07c 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/ManagementGroupData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/ManagementGroupData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.ManagementGroups.Models; using Azure.ResourceManager.Models; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/DescendantListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/DescendantListResult.cs index 62aff183d81cf..32c3ff8e93866 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/DescendantListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/DescendantListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.ManagementGroups.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/EntityData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/EntityData.cs index f60db3650a438..d169512159b74 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/EntityData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/EntityData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Models; using Azure.ResourceManager.Resources.Models; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/EntityListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/EntityListResult.cs index 628b677bb4b20..d0f1329631df2 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/EntityListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/EntityListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.ManagementGroups.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ListSubscriptionUnderManagementGroup.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ListSubscriptionUnderManagementGroup.cs index de615e7adfca8..1a4b5752724ec 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ListSubscriptionUnderManagementGroup.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ListSubscriptionUnderManagementGroup.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.ManagementGroups; namespace Azure.ResourceManager.ManagementGroups.Models diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildInfo.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildInfo.cs index 6c39dd6242a59..784471ecea7af 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildInfo.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.ManagementGroups.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildOptions.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildOptions.cs index baabce119a3c6..70f4195e523ce 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildOptions.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupChildOptions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.ManagementGroups.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupCreateOrUpdateContent.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupCreateOrUpdateContent.cs index 04b554b3c5071..131a01fb3744b 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupCreateOrUpdateContent.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupCreateOrUpdateContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.ManagementGroups.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupInfo.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupInfo.cs index 3bcdc40513ca6..e4c7899b6ef77 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupInfo.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.ManagementGroups.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupListResult.cs index 45e2d6ee1c4a2..4bed83f438124 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/ManagementGroup/Generated/Models/ManagementGroupListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.ManagementGroups; namespace Azure.ResourceManager.ManagementGroups.Models diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Custom/HelperSuppressions.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Custom/HelperSuppressions.cs index 798be0ae6cae1..826e21346e16d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Custom/HelperSuppressions.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Custom/HelperSuppressions.cs @@ -4,3 +4,4 @@ using Azure.Core; [assembly: CodeGenSuppressType("Azure.ResourceManager.Optional")] +[assembly: CodeGenSuppressType("Azure.ResourceManager.ChangeTrackingList")] diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/DataPolicyManifestData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/DataPolicyManifestData.cs index 105ba8d7b299a..19ac5c9f58bcc 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/DataPolicyManifestData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/DataPolicyManifestData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Models; using Azure.ResourceManager.Resources.Models; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockData.cs index 6a7605310752e..b820c31e2eb1d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Models; using Azure.ResourceManager.Resources.Models; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ArmPolicyParameter.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ArmPolicyParameter.cs index 323f9dc66a994..c997bd37383a4 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ArmPolicyParameter.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ArmPolicyParameter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/AzureRoleDefinition.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/AzureRoleDefinition.cs index 6f9b794120f74..b5ff9d7e73a8a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/AzureRoleDefinition.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/AzureRoleDefinition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataManifestCustomResourceFunctionDefinition.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataManifestCustomResourceFunctionDefinition.cs index 969333c719bd6..f03783ecd8a45 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataManifestCustomResourceFunctionDefinition.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataManifestCustomResourceFunctionDefinition.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataPolicyManifestListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataPolicyManifestListResult.cs index 40e5e5b2a4a8e..8caba777feea3 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataPolicyManifestListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/DataPolicyManifestListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExportTemplate.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExportTemplate.cs index 884d990e17ea2..c963476181012 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExportTemplate.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExportTemplate.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/FeatureOperationsListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/FeatureOperationsListResult.cs index 02d01d17d200a..c7004f34065db 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/FeatureOperationsListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/FeatureOperationsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationExpanded.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationExpanded.cs index fdd7572019c40..d1422c9275943 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationExpanded.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationExpanded.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationListResult.cs index 9ffe3ce43ba34..6eae5a39621ee 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationMetadata.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationMetadata.cs index 2c66175f6365e..9dc2f32dc7da8 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationMetadata.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/LocationMetadata.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementLockListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementLockListResult.cs index af691ff249647..d188b46971bcd 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementLockListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ManagementLockListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/Permission.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/Permission.cs index 134dd3b95d28f..df028c81973f8 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/Permission.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/Permission.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentListResult.cs index 0d7a3e1426246..4cd35bffdfd59 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentPatch.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentPatch.cs index b7bc4138a651d..415f263edfd81 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentPatch.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyAssignmentPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionListResult.cs index a1e348a9b0a75..d62d6c447dade 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionReference.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionReference.cs index 23e19fd7c845a..98397e48cbd83 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionReference.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyDefinitionReference.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyOverride.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyOverride.cs index 24c17c6224b39..6a15863dcb287 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyOverride.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicyOverride.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicySetDefinitionListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicySetDefinitionListResult.cs index d121fa2660fbb..63065389485a4 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicySetDefinitionListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PolicySetDefinitionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTag.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTag.cs index b26eb4c850dbf..3a38eac768a39 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTag.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTag.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTagsListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTagsListResult.cs index 1fdf4e307d2e2..cfae4228669af 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTagsListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/PredefinedTagsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderExtendedLocation.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderExtendedLocation.cs index 23484c899eb7d..a730933a86276 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderExtendedLocation.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderExtendedLocation.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderPermissionListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderPermissionListResult.cs index 31299162603c8..a8fd9625ecf1a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderPermissionListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderPermissionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceType.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceType.cs index 97f3681188480..ff5621109d91b 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceType.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceType.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceTypeListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceTypeListResult.cs index b8785d0c8d914..3dca252eb2d34 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceTypeListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ProviderResourceTypeListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupListResult.cs index eac4c6a2a6551..ad80db07013cd 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceGroupListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceListResult.cs index c911b9fbeab9b..ada4acf18bc97 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceProviderListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceProviderListResult.cs index ee55dc2ffd2f9..e376ada841047 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceProviderListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceProviderListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelector.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelector.cs index a74df83487297..e4a08a03ea232 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelector.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelector.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelectorExpression.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelectorExpression.cs index 4951da8a14ab0..de4938afed647 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelectorExpression.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceSelectorExpression.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAlias.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAlias.cs index 20281d1430f50..d6624e2e7e246 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAlias.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAlias.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPath.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPath.cs index d3bb36c3709f6..3f728944d9e65 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPath.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliasPath.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliases.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliases.cs index 4b543d3b72421..2838e773518ba 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliases.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourceTypeAliases.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourcesMoveContent.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourcesMoveContent.cs index 9e0bd896f0699..fed3a111441c2 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourcesMoveContent.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ResourcesMoveContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionListResult.cs index 44757eae000ea..465a46d9df856 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/SubscriptionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantListResult.cs index 201fa773b88cf..6cc766e8712f5 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResourceProvider.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResourceProvider.cs index 507de583f806f..6a19d1d4928fa 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResourceProvider.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResourceProvider.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResourceProviderListResult.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResourceProviderListResult.cs index 2d9c3dcd0a778..2cb52d4b5cad4 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResourceProviderListResult.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/TenantResourceProviderListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ZoneMapping.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ZoneMapping.cs index 8faf11bf30e07..5f851575ee61d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ZoneMapping.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ZoneMapping.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentData.cs index 85ef3d303fa57..8a9482f5fdf35 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignmentData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Models; using Azure.ResourceManager.Resources.Models; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicySetDefinitionData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicySetDefinitionData.cs index 6ef0042b403c6..9e0f48894977a 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicySetDefinitionData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicySetDefinitionData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Models; using Azure.ResourceManager.Resources.Models; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceProviderData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceProviderData.cs index f55aac05fec99..b8a999b959c67 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceProviderData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceProviderData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Resources diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionData.cs index bd4f09422e15a..ceb475e9fc6d7 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Resources diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantData.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantData.cs index 9a5100a772488..49aa5e131684f 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantData.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantData.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Resources diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Internal/ChangeTrackingList.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..55fbf7f225c6f --- /dev/null +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ResourceMover +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/AffectedMoverResourceInfo.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/AffectedMoverResourceInfo.cs index d1597837648e0..1e60a33a000f7 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/AffectedMoverResourceInfo.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/AffectedMoverResourceInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/LoadBalancerResourceSettings.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/LoadBalancerResourceSettings.cs index 7647ecc93c282..67645310f6c47 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/LoadBalancerResourceSettings.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/LoadBalancerResourceSettings.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoveCollectionResultList.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoveCollectionResultList.cs index 94c8cbc0f6ee6..5c6caa9d1c864 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoveCollectionResultList.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoveCollectionResultList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoveErrorInfo.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoveErrorInfo.cs index b0a1e0d1985aa..8d1caa9769d2f 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoveErrorInfo.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoveErrorInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverBulkRemoveContent.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverBulkRemoveContent.cs index 32e0a54eea3bb..418961dbe610f 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverBulkRemoveContent.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverBulkRemoveContent.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverOperationStatusError.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverOperationStatusError.cs index 19135bf3cba86..87501abe3ae7f 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverOperationStatusError.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverOperationStatusError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverOperationsDiscoveryList.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverOperationsDiscoveryList.cs index 7c23e16b770f6..133622059cd30 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverOperationsDiscoveryList.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverOperationsDiscoveryList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverResourceList.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverResourceList.cs index a7321fee90017..30e1e63fa3b0a 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverResourceList.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverResourceProperties.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverResourceProperties.cs index 4a71e7cfa56e9..3168ef5417301 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverResourceProperties.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverResourceProperties.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverSummaryList.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverSummaryList.cs index 9cb6094e31610..1d6c520f9affe 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverSummaryList.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverSummaryList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverUnresolvedDependencyList.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverUnresolvedDependencyList.cs index 401ad993047aa..347745bbb080f 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverUnresolvedDependencyList.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverUnresolvedDependencyList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverVirtualNetworkResourceSettings.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverVirtualNetworkResourceSettings.cs index b17961e4a309f..07c99485b25a4 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverVirtualNetworkResourceSettings.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/MoverVirtualNetworkResourceSettings.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/NetworkInterfaceResourceSettings.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/NetworkInterfaceResourceSettings.cs index 8b6e9e4dd42ce..6159ac5ce0511 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/NetworkInterfaceResourceSettings.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/NetworkInterfaceResourceSettings.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/NetworkSecurityGroupResourceSettings.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/NetworkSecurityGroupResourceSettings.cs index 9d38a6f2b6c9e..967a550d0272e 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/NetworkSecurityGroupResourceSettings.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/NetworkSecurityGroupResourceSettings.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/NicIPConfigurationResourceSettings.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/NicIPConfigurationResourceSettings.cs index f9620b1061c0a..42bfdc096ae99 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/NicIPConfigurationResourceSettings.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/NicIPConfigurationResourceSettings.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/RequiredForResourcesList.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/RequiredForResourcesList.cs index 060fe465c66ff..f0bc2e0559dd5 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/RequiredForResourcesList.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/RequiredForResourcesList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/VirtualMachineResourceSettings.cs b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/VirtualMachineResourceSettings.cs index 56bfe2de28771..af4eacf1d4a54 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/VirtualMachineResourceSettings.cs +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Generated/Models/VirtualMachineResourceSettings.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ResourceMover; namespace Azure.ResourceManager.ResourceMover.Models { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Internal/ChangeTrackingList.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..488e5fa5de0e6 --- /dev/null +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Resources +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionListResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionListResult.cs index 9d272075e7e3d..564cd463a308b 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionListResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationDefinitionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationJitAccessPolicy.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationJitAccessPolicy.cs index 331ebb6ed08d9..4b5c443334b95 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationJitAccessPolicy.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationJitAccessPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationListResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationListResult.cs index a84e47f4a2b0d..4b5586cf1ac73 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationListResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs index 9f641fdf0e215..c3894a72d5d7e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageLockingPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPatch.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPatch.cs index 50d646830c2f3..70c34d8a795d8 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPatch.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPatch.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDependency.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDependency.cs index bc6f01f55c9eb..19292f0ca8866 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDependency.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDependency.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentListResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentListResult.cs index 4fa7202959831..f477fc308a5b0 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentListResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationsListResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationsListResult.cs index a3812024889a0..2377cf5e88ec8 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationsListResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentOperationsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentPropertiesExtended.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentPropertiesExtended.cs index c0ddb68dd92cd..0315c8f6c876c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentPropertiesExtended.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentPropertiesExtended.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptListResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptListResult.cs index 2b137ebca1bef..86b04ddc4499b 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptListResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmDeploymentScriptListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestListResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestListResult.cs index 263c936a15e24..7fabc37eea62c 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestListResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/JitRequestListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptLogsList.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptLogsList.cs index f916a35cbd84a..bc43464c5b862 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptLogsList.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ScriptLogsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionsListResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionsListResult.cs index 6b7513ce23577..b2a0f0fb04512 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionsListResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecVersionsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecsListResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecsListResult.cs index 660be1f883da7..e66ff0be33f92 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecsListResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/TemplateSpecsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfChange.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfChange.cs index 5a1d8243acb0a..1d6cf106df939 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfChange.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfChange.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfOperationResult.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfOperationResult.cs index fc634538a8ea4..0b48009d6022a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfOperationResult.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfOperationResult.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfPropertyChange.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfPropertyChange.cs index a564b0aea60bf..da4f8a221c704 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfPropertyChange.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/WhatIfPropertyChange.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Resources.Models { diff --git a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Internal/ChangeTrackingList.cs b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..85f0394e3b74f --- /dev/null +++ b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Data.SchemaRegistry +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/ErrorDetail.Serialization.cs index 883c093ad4cb2..e4610f5b07fc6 100644 --- a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/ErrorDetail.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Data.SchemaRegistry; namespace Azure.Data.SchemaRegistry.Models { diff --git a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/ErrorDetail.cs b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/ErrorDetail.cs index ac7146b7fa9a7..a8b4097dee01f 100644 --- a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/ErrorDetail.cs +++ b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/ErrorDetail.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Data.SchemaRegistry; namespace Azure.Data.SchemaRegistry.Models { diff --git a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaGroups.Serialization.cs b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaGroups.Serialization.cs index 670b393b00e22..f727a083db092 100644 --- a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaGroups.Serialization.cs +++ b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaGroups.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Data.SchemaRegistry; namespace Azure.Data.SchemaRegistry.Models { diff --git a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaGroups.cs b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaGroups.cs index 7305bad2d0f90..96db3a9aeebd6 100644 --- a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaGroups.cs +++ b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaGroups.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Data.SchemaRegistry; namespace Azure.Data.SchemaRegistry.Models { diff --git a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaVersions.Serialization.cs b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaVersions.Serialization.cs index 9410e529604db..e63edb37f1b9a 100644 --- a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaVersions.Serialization.cs +++ b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaVersions.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Data.SchemaRegistry; namespace Azure.Data.SchemaRegistry.Models { diff --git a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaVersions.cs b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaVersions.cs index fedb205d0ab49..682392cc9316d 100644 --- a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaVersions.cs +++ b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaVersions.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Data.SchemaRegistry; namespace Azure.Data.SchemaRegistry.Models { diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Internal/ChangeTrackingList.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..a5d5df921147f --- /dev/null +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Search +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ListQueryKeysResult.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ListQueryKeysResult.cs index a5c0a8cd4d912..1c8332eacb22e 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ListQueryKeysResult.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/ListQueryKeysResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Search; namespace Azure.ResourceManager.Search.Models { diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/NetworkRuleSet.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/NetworkRuleSet.cs index 0daf85d3400fd..bc644d2ecc2b6 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/NetworkRuleSet.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/NetworkRuleSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Search; namespace Azure.ResourceManager.Search.Models { diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/PrivateLinkResourcesResult.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/PrivateLinkResourcesResult.cs index 381541300e416..7682b3a25c364 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/PrivateLinkResourcesResult.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/PrivateLinkResourcesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Search; namespace Azure.ResourceManager.Search.Models { diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsagesListResult.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsagesListResult.cs index b29bc3a0e7252..70a1876ef18c0 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsagesListResult.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/QuotaUsagesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Search; namespace Azure.ResourceManager.Search.Models { diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateEndpointConnectionListResult.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateEndpointConnectionListResult.cs index 434c431dcf411..bbb9caa22ca4b 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateEndpointConnectionListResult.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Search; namespace Azure.ResourceManager.Search.Models diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkResourceProperties.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkResourceProperties.cs index 43e1e3ed7f795..cb28d7427c4b3 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkResourceProperties.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchPrivateLinkResourceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Search; namespace Azure.ResourceManager.Search.Models { diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceListResult.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceListResult.cs index 5b6fa1b8b55a8..b3213e985c08b 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceListResult.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SearchServiceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Search; namespace Azure.ResourceManager.Search.Models diff --git a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedPrivateLinkResourceListResult.cs b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedPrivateLinkResourceListResult.cs index 4057475876a2d..42f2ce61d4779 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedPrivateLinkResourceListResult.cs +++ b/sdk/search/Azure.ResourceManager.Search/src/Generated/Models/SharedPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Search; namespace Azure.ResourceManager.Search.Models diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Internal/ChangeTrackingList.cs b/sdk/search/Azure.Search.Documents/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..6ab936edddbf9 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Search.Documents +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzeTextOptions.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzeTextOptions.cs index 8f373189fc171..6d39821c02b21 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzeTextOptions.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzeTextOptions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CjkBigramTokenFilter.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CjkBigramTokenFilter.cs index 065d0fc7188f9..dfd2996a015cf 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CjkBigramTokenFilter.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CjkBigramTokenFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomAnalyzer.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomAnalyzer.cs index 5a4738dcec42e..b377e2544cec3 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomAnalyzer.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomAnalyzer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntity.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntity.cs index f1bd4d42f7a66..f536e44b3d336 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntity.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntityLookupSkill.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntityLookupSkill.cs index 1823a9f0639b9..ead20d541e602 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntityLookupSkill.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntityLookupSkill.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomNormalizer.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomNormalizer.cs index bd23b95770089..86a961af80747 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomNormalizer.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomNormalizer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenizer.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenizer.cs index e74500624296f..b5c6e6beda10d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenizer.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenizer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ElisionTokenFilter.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ElisionTokenFilter.cs index 68e49bb7c4adc..35fb8a77ce9fc 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ElisionTokenFilter.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ElisionTokenFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkill.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkill.cs index 49e4aaf7cbf6e..e404a2d983abf 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkill.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkill.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkillV3.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkillV3.cs index f907d62b101d1..46099e15a2e16 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkillV3.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkillV3.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorDetail.Serialization.cs index 9bc279b33dc7e..1f0f0448e5b08 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorDetail.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorDetail.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorDetail.cs index 68ef5a9e51ffc..e820aec4b8bdb 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorDetail.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorDetail.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ImageAnalysisSkill.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ImageAnalysisSkill.cs index bd80643491793..08321f6e043d9 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ImageAnalysisSkill.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ImageAnalysisSkill.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerState.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerState.Serialization.cs index cd005cb5ee21a..07b1cb70404a3 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerState.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerState.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerState.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerState.cs index c0f7cd06d4d89..6e0f37a9a6755 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerState.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerState.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/InputFieldMappingEntry.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/InputFieldMappingEntry.cs index c541b3601c445..74af7525cf178 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/InputFieldMappingEntry.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/InputFieldMappingEntry.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjection.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjection.cs index 9abd617a26d45..b5491a074ed84 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjection.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjection.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjectionSelector.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjectionSelector.cs index b796d7deae9c3..1d54b88341c42 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjectionSelector.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjectionSelector.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/LuceneStandardAnalyzer.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/LuceneStandardAnalyzer.cs index 84fab1d884044..14b5dd171e8ac 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/LuceneStandardAnalyzer.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/LuceneStandardAnalyzer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/NGramTokenizer.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/NGramTokenizer.cs index 64e3c795c6f58..2a9f638311afa 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/NGramTokenizer.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/NGramTokenizer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternAnalyzer.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternAnalyzer.cs index ba2b7d7e9b679..2db5201e98c09 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternAnalyzer.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternAnalyzer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/PiiDetectionSkill.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/PiiDetectionSkill.cs index 7cdaee3b41cd0..c66bcbdc5fd1c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/PiiDetectionSkill.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/PiiDetectionSkill.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetDocumentOptions.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetDocumentOptions.cs index 425be5630216e..a98924e1fa535 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetDocumentOptions.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetDocumentOptions.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetSkillsOptions.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetSkillsOptions.cs index 651ec1cac634d..7f749d59f7201 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetSkillsOptions.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetSkillsOptions.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringProfile.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringProfile.cs index e6b25af248fa8..33a63c30984ba 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringProfile.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.cs index 3270d2dbceac5..728f330a257e1 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.cs index c2c65ceecb3ff..42abebf7c1c1e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexer.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexer.cs index 6745150063d9f..3b1657fc0dad7 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexer.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.cs index 4079c47fd3a29..ae9139b8aac7e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; using Azure.Search.Documents.Models; namespace Azure.Search.Documents diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResult.Serialization.cs index c5d36c91f8af4..f55610e7274ce 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResult.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResult.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResult.cs index 1ca515e934f4d..f1b3f218c7f8c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResult.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResult.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticDebugInfo.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticDebugInfo.Serialization.cs index c5ed70d480acf..b11487dc19aa1 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticDebugInfo.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticDebugInfo.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticDebugInfo.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticDebugInfo.cs index 763a01d792e58..d205683fddcbd 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticDebugInfo.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticDebugInfo.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticPrioritizedFields.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticPrioritizedFields.cs index a159778eab7f6..1e6ed2ed75d85 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticPrioritizedFields.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticPrioritizedFields.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticSearch.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticSearch.cs index f86c13dbd82ee..0d3540b566f69 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticSearch.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticSearch.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/StopAnalyzer.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/StopAnalyzer.cs index 2caf792e76395..c2b9f11f697a6 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/StopAnalyzer.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/StopAnalyzer.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/StopwordsTokenFilter.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/StopwordsTokenFilter.cs index 63ac13b3a037c..e8a3fafef2698 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/StopwordsTokenFilter.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/StopwordsTokenFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearch.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearch.cs index 1c70f63d8988c..c94459032b573 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearch.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearch.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/WordDelimiterTokenFilter.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/WordDelimiterTokenFilter.cs index 2d5aaca96b46b..002e00f446fea 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/WordDelimiterTokenFilter.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/WordDelimiterTokenFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Search.Documents; namespace Azure.Search.Documents.Indexes.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Internal/ChangeTrackingList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..b883ffdc85c27 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.SecurityCenter +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ActionableRemediation.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ActionableRemediation.cs index 6d0fd6d5e0df8..92f0b063e4ddf 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ActionableRemediation.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ActionableRemediation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdaptiveApplicationControlGroups.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdaptiveApplicationControlGroups.cs index 2cdb1d74bed38..5f6483e959b89 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdaptiveApplicationControlGroups.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdaptiveApplicationControlGroups.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdaptiveNetworkHardeningsList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdaptiveNetworkHardeningsList.cs index 5cccc975fe4f7..0d304361eaaa9 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdaptiveNetworkHardeningsList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdaptiveNetworkHardeningsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdditionalWorkspacesProperties.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdditionalWorkspacesProperties.cs index 97df1550d8b55..1d02fc1f6416a 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdditionalWorkspacesProperties.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AdditionalWorkspacesProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AlertList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AlertList.cs index 1bac10cdd5763..072c2e9603496 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AlertList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AlertList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AllowedConnectionsList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AllowedConnectionsList.cs index eecb27d5fc59a..5e5364ac4dd1f 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AllowedConnectionsList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AllowedConnectionsList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ApiCollectionList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ApiCollectionList.cs index 763a90ae15e03..15156c58315f1 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ApiCollectionList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ApiCollectionList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ApplicationsList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ApplicationsList.cs index 4e3aaa205aa5a..1fed6550856a8 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ApplicationsList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ApplicationsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AscLocationList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AscLocationList.cs index f577011f485ac..a7d663f4abbe2 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AscLocationList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AscLocationList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AuthenticationDetailsProperties.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AuthenticationDetailsProperties.cs index 5868ce1eb1a14..a1992958d477d 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AuthenticationDetailsProperties.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AuthenticationDetailsProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AutoProvisioningSettingList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AutoProvisioningSettingList.cs index e2b5ce862a6d4..be0cbc3dd449d 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AutoProvisioningSettingList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AutoProvisioningSettingList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AwsEnvironment.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AwsEnvironment.cs index feddb2095777b..e293c861dc5f4 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AwsEnvironment.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AwsEnvironment.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AwsOrganizationalDataMaster.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AwsOrganizationalDataMaster.cs index 102145fc8b95e..ebc272b0c2f2d 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AwsOrganizationalDataMaster.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AwsOrganizationalDataMaster.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AzureDevOpsOrgListResponse.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AzureDevOpsOrgListResponse.cs index 5a84d061bf401..54d693d817c1a 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AzureDevOpsOrgListResponse.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AzureDevOpsOrgListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AzureDevOpsProjectListResponse.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AzureDevOpsProjectListResponse.cs index eb2ccb63a050f..b26fbaa174e19 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AzureDevOpsProjectListResponse.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AzureDevOpsProjectListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AzureDevOpsRepositoryListResponse.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AzureDevOpsRepositoryListResponse.cs index 24c78d2e068ff..716b1beeaf42c 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AzureDevOpsRepositoryListResponse.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/AzureDevOpsRepositoryListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/BaselineAdjustedResult.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/BaselineAdjustedResult.cs index 562170fed053b..9558c807a8505 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/BaselineAdjustedResult.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/BaselineAdjustedResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ComplianceList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ComplianceList.cs index ce1fbb58a36c4..5280f96ebf349 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ComplianceList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ComplianceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ConnectableResourceInfo.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ConnectableResourceInfo.cs index 5e12b27c8526e..9a7b5721423d8 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ConnectableResourceInfo.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ConnectableResourceInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ConnectorSettingList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ConnectorSettingList.cs index 45c926db2ca52..00014e265c5da 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ConnectorSettingList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ConnectorSettingList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ContainerRegistryVulnerabilityProperties.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ContainerRegistryVulnerabilityProperties.cs index 603b5037ad807..50419c6c64183 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ContainerRegistryVulnerabilityProperties.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ContainerRegistryVulnerabilityProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/CustomAssessmentAutomationsListResult.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/CustomAssessmentAutomationsListResult.cs index b8c0245bb4d9c..de00d95f7f45b 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/CustomAssessmentAutomationsListResult.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/CustomAssessmentAutomationsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/CustomEntityStoreAssignmentsListResult.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/CustomEntityStoreAssignmentsListResult.cs index 85ffd4679c737..4e9d8b39c0ff8 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/CustomEntityStoreAssignmentsListResult.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/CustomEntityStoreAssignmentsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationListResponse.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationListResponse.cs index e1278ffef6b62..e6d8e4cda29ad 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationListResponse.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationProperties.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationProperties.cs index 867cdf75a521a..3f078bf744b80 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationProperties.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DeviceSecurityGroupList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DeviceSecurityGroupList.cs index c570421603268..4bcf27125cbd1 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DeviceSecurityGroupList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DeviceSecurityGroupList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DiscoveredSecuritySolutionList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DiscoveredSecuritySolutionList.cs index c3e59a825dc7a..335f950daf03b 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DiscoveredSecuritySolutionList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DiscoveredSecuritySolutionList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/EffectiveNetworkSecurityGroups.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/EffectiveNetworkSecurityGroups.cs index 2924607828a06..685d73d09b7b8 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/EffectiveNetworkSecurityGroups.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/EffectiveNetworkSecurityGroups.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ExternalSecuritySolutionList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ExternalSecuritySolutionList.cs index 6d91295d55db3..9ae73145dc306 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ExternalSecuritySolutionList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ExternalSecuritySolutionList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GcpParentOrganizationalInfo.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GcpParentOrganizationalInfo.cs index 182a763644f45..af7bb4e83858f 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GcpParentOrganizationalInfo.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GcpParentOrganizationalInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GetSensitivitySettingsResponsePropertiesMipInformation.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GetSensitivitySettingsResponsePropertiesMipInformation.cs index b9af4ae2ebf0b..22f4bffc6b339 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GetSensitivitySettingsResponsePropertiesMipInformation.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GetSensitivitySettingsResponsePropertiesMipInformation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitHubOwnerListResponse.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitHubOwnerListResponse.cs index 5db31ade90d93..b76408b91b402 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitHubOwnerListResponse.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitHubOwnerListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitHubRepositoryListResponse.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitHubRepositoryListResponse.cs index 8fb01bad850b8..b1fa1052f2571 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitHubRepositoryListResponse.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitHubRepositoryListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitLabGroupListResponse.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitLabGroupListResponse.cs index 1f3e9f4797687..9930362df17c7 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitLabGroupListResponse.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitLabGroupListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitLabProjectListResponse.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitLabProjectListResponse.cs index f46410fabca82..b67d6f35ae39c 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitLabProjectListResponse.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GitLabProjectListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GovernanceAssignmentsList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GovernanceAssignmentsList.cs index 164c7e3373b18..3a8de2d111410 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GovernanceAssignmentsList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GovernanceAssignmentsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GovernanceRuleList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GovernanceRuleList.cs index f4134d30d360f..253845428b059 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GovernanceRuleList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GovernanceRuleList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/HealthReportsList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/HealthReportsList.cs index e804edcd0916c..7b9e233a62698 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/HealthReportsList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/HealthReportsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/InformationProtectionPolicyList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/InformationProtectionPolicyList.cs index a039fadd05dfd..b739a599558be 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/InformationProtectionPolicyList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/InformationProtectionPolicyList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecuritySolutionPatch.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecuritySolutionPatch.cs index 7333c9b884e29..db0ce11962155 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecuritySolutionPatch.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/IotSecuritySolutionPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessPoliciesList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessPoliciesList.cs index 5ed6904e29445..082e0df498e85 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessPoliciesList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessPoliciesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessPortRule.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessPortRule.cs index 5cb0fd5b32433..a463de6bf0f8d 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessPortRule.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessPortRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessRequestPort.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessRequestPort.cs index 3043b67849a91..974d70e9efbc2 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessRequestPort.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/JitNetworkAccessRequestPort.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/MdeOnboardingDataList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/MdeOnboardingDataList.cs index 9be7a021e8f46..490ec2a8e52e8 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/MdeOnboardingDataList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/MdeOnboardingDataList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/PathRecommendation.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/PathRecommendation.cs index e500cbf477127..060a4f8e04d50 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/PathRecommendation.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/PathRecommendation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RecommendedSecurityRule.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RecommendedSecurityRule.cs index f2c7f8c523836..38024548f3b10 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RecommendedSecurityRule.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RecommendedSecurityRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RuleResultsProperties.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RuleResultsProperties.cs index 20122c721199a..4127a3c0fd8ba 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RuleResultsProperties.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RuleResultsProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RulesResults.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RulesResults.cs index 538b23912be56..1c5fd1f41116f 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RulesResults.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/RulesResults.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ScanResults.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ScanResults.cs index 0a477cbad1416..5bb08d3bef499 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ScanResults.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ScanResults.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/Scans.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/Scans.cs index fa37053fd4bab..8b616ddd0d971 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/Scans.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/Scans.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreControlDefinitionItem.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreControlDefinitionItem.cs index e7f330ac94681..afa20e4acda97 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreControlDefinitionItem.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreControlDefinitionItem.cs @@ -10,6 +10,7 @@ using Azure.Core; using Azure.ResourceManager.Models; using Azure.ResourceManager.Resources.Models; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreControlDefinitionList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreControlDefinitionList.cs index bd8d3942262d6..fa1bc13794fda 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreControlDefinitionList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreControlDefinitionList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreControlList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreControlList.cs index 5cdaccc5efcc8..3d89f96204361 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreControlList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoreControlList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoresList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoresList.cs index 781d708ad2b5b..e0d307ef7bc87 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoresList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecureScoresList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAlertSimulatorBundlesRequestProperties.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAlertSimulatorBundlesRequestProperties.cs index 8bc34521a0aa3..fe3cae2eeaa00 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAlertSimulatorBundlesRequestProperties.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAlertSimulatorBundlesRequestProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentList.cs index cd4993464c3a5..5840317afb24e 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentMetadataProperties.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentMetadataProperties.cs index 4868c0f0b4758..2bcb56372519b 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentMetadataProperties.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentMetadataProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentMetadataResponseList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentMetadataResponseList.cs index 4042fa9291f66..1aea9765f063d 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentMetadataResponseList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAssessmentMetadataResponseList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAutomationRuleSet.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAutomationRuleSet.cs index c58fdcaf2fa00..fc7d5c5548f02 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAutomationRuleSet.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAutomationRuleSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAutomationSource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAutomationSource.cs index b0c407f09996f..92b4b4f8e56d1 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAutomationSource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityAutomationSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCenterAllowedConnection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCenterAllowedConnection.cs index 120517aede8ab..db6e3e6df50f3 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCenterAllowedConnection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityCenterAllowedConnection.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityContactList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityContactList.cs index bf190d1f8ad01..020c39b9e1030 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityContactList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityContactList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityContactPropertiesNotificationsByRole.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityContactPropertiesNotificationsByRole.cs index 39a452166ba20..59000dd695a00 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityContactPropertiesNotificationsByRole.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityContactPropertiesNotificationsByRole.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityHealthReportIssue.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityHealthReportIssue.cs index 805817b9f9c4e..eabdb62f7bc1e 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityHealthReportIssue.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityHealthReportIssue.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityInformationTypeInfo.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityInformationTypeInfo.cs index 1097730fbe45f..555ffef39409e 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityInformationTypeInfo.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityInformationTypeInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySolutionList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySolutionList.cs index c26b93220e2a0..7d4689900b517 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySolutionList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySolutionList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySolutionsReferenceDataList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySolutionsReferenceDataList.cs index 61d94098bc910..a15d3a835f3de 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySolutionsReferenceDataList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySolutionsReferenceDataList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySubAssessmentList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySubAssessmentList.cs index ba44000833235..c76c1f4d1612d 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySubAssessmentList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecuritySubAssessmentList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityTaskList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityTaskList.cs index ef111d5a99a59..cf04e0cca36fa 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityTaskList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityTaskList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityTopologyResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityTopologyResource.cs index 6234a9854d1d4..2b542da3f5340 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityTopologyResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SecurityTopologyResource.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SensitivitySettingsProperties.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SensitivitySettingsProperties.cs index 8ba854001e62b..a8186d89ad823 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SensitivitySettingsProperties.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SensitivitySettingsProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityAssessmentsList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityAssessmentsList.cs index 1d495d35f269a..b05afa4c2cbfe 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityAssessmentsList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityAssessmentsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityAssessmentsSettingsList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityAssessmentsSettingsList.cs index 59b52b335a587..e7c898a5d8cde 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityAssessmentsSettingsList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityAssessmentsSettingsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityProperties.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityProperties.cs index f461dd1915302..a80a0f75533f2 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityProperties.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/ServerVulnerabilityProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SettingsList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SettingsList.cs index 319803794e1eb..0ef3a67e77986 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SettingsList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SettingsList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SoftwaresList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SoftwaresList.cs index 015b36dbfdf1c..8cd8a26bd3568 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SoftwaresList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SoftwaresList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentBaseline.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentBaseline.cs index 417917a731a0d..0be913a626c71 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentBaseline.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentBaseline.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent.cs index 6375a5a62ce2d..8c32e70e3a305 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentRemediation.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentRemediation.cs index 21256832e25b1..52ef8c8dccb97 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentRemediation.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentRemediation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentScanResultProperties.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentScanResultProperties.cs index 7d2966b6c84e1..cf45cd8f2fad3 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentScanResultProperties.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/SqlVulnerabilityAssessmentScanResultProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TargetBranchConfiguration.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TargetBranchConfiguration.cs index 9791b2961a737..4fba9f78ea436 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TargetBranchConfiguration.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TargetBranchConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TopologyList.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TopologyList.cs index 62c4e31540b13..ca9816efc5485 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TopologyList.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TopologyList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TopologySingleResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TopologySingleResource.cs index 21359cc0202f9..038d800cc1d33 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TopologySingleResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/TopologySingleResource.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/VulnerabilityAssessmentRule.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/VulnerabilityAssessmentRule.cs index d2322f8f36379..b63ed8ff4e4d0 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/VulnerabilityAssessmentRule.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/VulnerabilityAssessmentRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/VulnerabilityAssessmentRuleQueryCheck.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/VulnerabilityAssessmentRuleQueryCheck.cs index d8e5872ee2f1b..62cccdafeed59 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/VulnerabilityAssessmentRuleQueryCheck.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/VulnerabilityAssessmentRuleQueryCheck.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityCenter; namespace Azure.ResourceManager.SecurityCenter.Models { diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Internal/ChangeTrackingList.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..351ebd033cb06 --- /dev/null +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.SecurityDevOps +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/ActionableRemediation.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/ActionableRemediation.cs index cb3dee2529eb9..5613c59e04ebe 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/ActionableRemediation.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/ActionableRemediation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityDevOps; namespace Azure.ResourceManager.SecurityDevOps.Models { diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorListResponse.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorListResponse.cs index 33022a8e18339..8c4ff35b5ff37 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorListResponse.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityDevOps; namespace Azure.ResourceManager.SecurityDevOps.Models diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorProperties.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorProperties.cs index 68afe0e6f88fa..a234ee17bc068 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorProperties.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityDevOps; namespace Azure.ResourceManager.SecurityDevOps.Models { diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorStatsListResponse.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorStatsListResponse.cs index e1ce232a566f9..bed95aedd290d 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorStatsListResponse.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsConnectorStatsListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityDevOps; namespace Azure.ResourceManager.SecurityDevOps.Models { diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsOrgListResponse.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsOrgListResponse.cs index ce86bf069790f..336f855fe6ba0 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsOrgListResponse.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsOrgListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityDevOps; namespace Azure.ResourceManager.SecurityDevOps.Models diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsOrgMetadata.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsOrgMetadata.cs index 33934d4b37fad..e8c4cca0fec79 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsOrgMetadata.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsOrgMetadata.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityDevOps; namespace Azure.ResourceManager.SecurityDevOps.Models { diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsProjectListResponse.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsProjectListResponse.cs index ced4387c1b54c..3bbb37b9f893d 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsProjectListResponse.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsProjectListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityDevOps; namespace Azure.ResourceManager.SecurityDevOps.Models diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsProjectMetadata.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsProjectMetadata.cs index 1dab84cc71e90..cbf7979311083 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsProjectMetadata.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsProjectMetadata.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityDevOps; namespace Azure.ResourceManager.SecurityDevOps.Models { diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsRepoListResponse.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsRepoListResponse.cs index 0bb7c02e90edd..cb8a11b6b62f2 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsRepoListResponse.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/AzureDevOpsRepoListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityDevOps; namespace Azure.ResourceManager.SecurityDevOps.Models diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubConnectorListResponse.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubConnectorListResponse.cs index c2dbfad9c9653..4be31e8c6bddd 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubConnectorListResponse.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubConnectorListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityDevOps; namespace Azure.ResourceManager.SecurityDevOps.Models diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubConnectorStatsListResponse.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubConnectorStatsListResponse.cs index c0caadb20ff13..bfc52ad94f5bb 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubConnectorStatsListResponse.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubConnectorStatsListResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityDevOps; namespace Azure.ResourceManager.SecurityDevOps.Models { diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubOwnerListResponse.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubOwnerListResponse.cs index 66b75c9ed94d7..bc092cbe0fa92 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubOwnerListResponse.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubOwnerListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityDevOps; namespace Azure.ResourceManager.SecurityDevOps.Models diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubRepoListResponse.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubRepoListResponse.cs index 70f2a0585d3d0..61e6790687436 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubRepoListResponse.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/GitHubRepoListResponse.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityDevOps; namespace Azure.ResourceManager.SecurityDevOps.Models diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/TargetBranchConfiguration.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/TargetBranchConfiguration.cs index 2b238b6bb71e3..191e4621db854 100644 --- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/TargetBranchConfiguration.cs +++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/src/Generated/Models/TargetBranchConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityDevOps; namespace Azure.ResourceManager.SecurityDevOps.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Internal/ChangeTrackingList.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..72ba425c3435a --- /dev/null +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.SecurityInsights +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AlertRuleTemplateDataSource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AlertRuleTemplateDataSource.cs index b4c4536c1dbd4..f6577a49bb821 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AlertRuleTemplateDataSource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AlertRuleTemplateDataSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AutomationRulePropertyValuesChangedCondition.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AutomationRulePropertyValuesChangedCondition.cs index a2218f60b8da6..507f70c3fece5 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AutomationRulePropertyValuesChangedCondition.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AutomationRulePropertyValuesChangedCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AutomationRulePropertyValuesCondition.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AutomationRulePropertyValuesCondition.cs index 8f57167572e7b..ce11e9d419032 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AutomationRulePropertyValuesCondition.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AutomationRulePropertyValuesCondition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AutomationRulesList.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AutomationRulesList.cs index 73f040f6c31ca..c3b492f32d3a8 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AutomationRulesList.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/AutomationRulesList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlert.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlert.cs index 65b5507e81abf..e4372d27add34 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlert.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlert.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleEntityMapping.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleEntityMapping.cs index 606d884df8fef..2754c4401a0e4 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleEntityMapping.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAlertRuleEntityMapping.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAutomationRuleTriggeringLogic.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAutomationRuleTriggeringLogic.cs index 147533b2f40d6..4e270a43e5165 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAutomationRuleTriggeringLogic.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsAutomationRuleTriggeringLogic.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsDnsEntity.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsDnsEntity.cs index 4c1abe3340c41..5efbdc1c8dc2b 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsDnsEntity.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsDnsEntity.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsFileEntity.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsFileEntity.cs index 74d170bee826f..fedafa559fed2 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsFileEntity.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsFileEntity.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsGroupingConfiguration.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsGroupingConfiguration.cs index 0fdbdbe99a12b..44729f5c3a072 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsGroupingConfiguration.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsGroupingConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsHuntingBookmark.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsHuntingBookmark.cs index 3b1d191681a64..93941db194d46 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsHuntingBookmark.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsHuntingBookmark.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIPEntity.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIPEntity.cs index b00a56bf801d7..5f8bbd21f0a14 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIPEntity.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIPEntity.cs @@ -10,6 +10,7 @@ using System.Net; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentActionConfiguration.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentActionConfiguration.cs index 9d48bd22eb607..22a46562a10ea 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentActionConfiguration.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentActionConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentAdditionalInfo.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentAdditionalInfo.cs index 19bbe91c48674..7db7de077cf25 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentAdditionalInfo.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentAdditionalInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentEntitiesResult.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentEntitiesResult.cs index 6974d474e3435..509ee1a7b3ba1 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentEntitiesResult.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIncidentEntitiesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIotDeviceEntity.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIotDeviceEntity.cs index 849918c03ffd2..83f1283852904 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIotDeviceEntity.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsIotDeviceEntity.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailClusterEntity.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailClusterEntity.cs index 8dc98216c5c8f..d8d2fbcf43579 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailClusterEntity.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailClusterEntity.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailMessageEntity.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailMessageEntity.cs index 22c1ed4f1be35..ee3cce505c177 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailMessageEntity.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMailMessageEntity.cs @@ -10,6 +10,7 @@ using System.Net; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMalwareEntity.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMalwareEntity.cs index 176a907db9624..e78226fa8ae11 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMalwareEntity.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityInsightsMalwareEntity.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityMLAnalyticsSettingsDataSource.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityMLAnalyticsSettingsDataSource.cs index 8155c9800049d..413cd44bd5c0f 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityMLAnalyticsSettingsDataSource.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/SecurityMLAnalyticsSettingsDataSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceAppendTags.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceAppendTags.cs index 127f3de035da2..cab87b968c14e 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceAppendTags.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceAppendTags.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceFilteringCriteria.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceFilteringCriteria.cs index ee8d02c04bea9..c35f2a1ccbfb0 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceFilteringCriteria.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceFilteringCriteria.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceGranularMarkingEntity.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceGranularMarkingEntity.cs index 47d6c47ee61c7..c1ef7593fbe23 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceGranularMarkingEntity.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceGranularMarkingEntity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceMetric.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceMetric.cs index b0f148dae4a41..2d887b0cbb9aa 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceMetric.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceMetric.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceParsedPattern.cs b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceParsedPattern.cs index 0a4530f2e34e4..f4414c4738de0 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceParsedPattern.cs +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/Generated/Models/ThreatIntelligenceParsedPattern.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SecurityInsights; namespace Azure.ResourceManager.SecurityInsights.Models { diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Internal/ChangeTrackingList.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..fdb58a3138cf3 --- /dev/null +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.SelfHelp +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/ContinueRequestBody.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/ContinueRequestBody.cs index 58737e789699b..7c4475a842103 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/ContinueRequestBody.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/ContinueRequestBody.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SelfHelp; namespace Azure.ResourceManager.SelfHelp.Models { diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/FilterGroup.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/FilterGroup.cs index 7533f6bea0e30..c6e4eaff95da0 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/FilterGroup.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/FilterGroup.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SelfHelp; namespace Azure.ResourceManager.SelfHelp.Models { diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/ReplacementMaps.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/ReplacementMaps.cs index 5a0c4a83b1be0..1b05b02cb6f72 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/ReplacementMaps.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/ReplacementMaps.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SelfHelp; namespace Azure.ResourceManager.SelfHelp.Models { diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpDiagnosticInfo.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpDiagnosticInfo.cs index a92456db43cb2..1f27f657b452c 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpDiagnosticInfo.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpDiagnosticInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SelfHelp; namespace Azure.ResourceManager.SelfHelp.Models { diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpDiscoverySolutionResult.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpDiscoverySolutionResult.cs index fbb47fc512146..dc614fae7bc11 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpDiscoverySolutionResult.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpDiscoverySolutionResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SelfHelp; namespace Azure.ResourceManager.SelfHelp.Models { diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpError.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpError.cs index 950b6bae801a7..bfcb69519be13 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpError.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SelfHelp; namespace Azure.ResourceManager.SelfHelp.Models { diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpSolutionMetadata.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpSolutionMetadata.cs index 8d6d12d8ef18a..1d9b7876ea9fd 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpSolutionMetadata.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpSolutionMetadata.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.SelfHelp; namespace Azure.ResourceManager.SelfHelp.Models { diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpStep.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpStep.cs index f3e30ea07a959..6815bca6ee48f 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpStep.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SelfHelpStep.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.SelfHelp; namespace Azure.ResourceManager.SelfHelp.Models { diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionMetadataProperties.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionMetadataProperties.cs index bde64a99e7791..8e501bd9fcd90 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionMetadataProperties.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionMetadataProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SelfHelp; namespace Azure.ResourceManager.SelfHelp.Models { diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionResourceProperties.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionResourceProperties.cs index d621c59c1a975..da38f3471dd9b 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionResourceProperties.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionResourceProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.SelfHelp; namespace Azure.ResourceManager.SelfHelp.Models { diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionsDiagnostic.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionsDiagnostic.cs index 74465d997c882..6ee8d96ad9024 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionsDiagnostic.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/SolutionsDiagnostic.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SelfHelp; namespace Azure.ResourceManager.SelfHelp.Models { diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/StepInput.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/StepInput.cs index 2270d0a2c02ac..3b4c1dfd3972c 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/StepInput.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/StepInput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SelfHelp; namespace Azure.ResourceManager.SelfHelp.Models { diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/VideoGroup.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/VideoGroup.cs index 34a47bab6a7e2..a416d3169ac2a 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/VideoGroup.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/VideoGroup.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SelfHelp; namespace Azure.ResourceManager.SelfHelp.Models { diff --git a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/WebResult.cs b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/WebResult.cs index 071f61e9e2533..8c077b9f94f7d 100644 --- a/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/WebResult.cs +++ b/sdk/selfhelp/Azure.ResourceManager.SelfHelp/src/Generated/Models/WebResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SelfHelp; namespace Azure.ResourceManager.SelfHelp.Models { diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Internal/ChangeTrackingList.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..9f342aa4bc0d6 --- /dev/null +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ServiceBus +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ArmDisasterRecoveryListResult.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ArmDisasterRecoveryListResult.cs index f4391d3c6e5c3..8d177d66f82ad 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ArmDisasterRecoveryListResult.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ArmDisasterRecoveryListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceBus; namespace Azure.ResourceManager.ServiceBus.Models diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/MigrationConfigListResult.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/MigrationConfigListResult.cs index 2249c7a8e8935..4a41434cfbf90 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/MigrationConfigListResult.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/MigrationConfigListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceBus; namespace Azure.ResourceManager.ServiceBus.Models diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/NetworkRuleSetListResult.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/NetworkRuleSetListResult.cs index 1d6a08311d6f7..88938dcc0744c 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/NetworkRuleSetListResult.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/NetworkRuleSetListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceBus; namespace Azure.ResourceManager.ServiceBus.Models diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/PrivateLinkResourcesListResult.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/PrivateLinkResourcesListResult.cs index b043f2b35b06c..4a8637c730242 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/PrivateLinkResourcesListResult.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/PrivateLinkResourcesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ServiceBus; namespace Azure.ResourceManager.ServiceBus.Models { diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/RuleListResult.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/RuleListResult.cs index 6de40f71634f8..38d6b887efeb0 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/RuleListResult.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/RuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceBus; namespace Azure.ResourceManager.ServiceBus.Models diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBAuthorizationRuleListResult.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBAuthorizationRuleListResult.cs index 32865fce05b64..c937ec6a7a4d9 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBAuthorizationRuleListResult.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBAuthorizationRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceBus; namespace Azure.ResourceManager.ServiceBus.Models diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBNamespaceListResult.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBNamespaceListResult.cs index cc30fd71bd004..13df7664ce3c9 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBNamespaceListResult.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBNamespaceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceBus; namespace Azure.ResourceManager.ServiceBus.Models diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBQueueListResult.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBQueueListResult.cs index 4ebb7675736a9..f941746758744 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBQueueListResult.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBQueueListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceBus; namespace Azure.ResourceManager.ServiceBus.Models diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBSubscriptionListResult.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBSubscriptionListResult.cs index 3f377492f9970..537f8035ed73b 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBSubscriptionListResult.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBSubscriptionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceBus; namespace Azure.ResourceManager.ServiceBus.Models diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBTopicListResult.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBTopicListResult.cs index faa933c6bd03a..1b7416ad86584 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBTopicListResult.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/SBTopicListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceBus; namespace Azure.ResourceManager.ServiceBus.Models diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusEncryption.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusEncryption.cs index a4b5e1267117b..85ddd4bab64a8 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusEncryption.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusEncryption.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ServiceBus; namespace Azure.ResourceManager.ServiceBus.Models { diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusPrivateEndpointConnectionListResult.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusPrivateEndpointConnectionListResult.cs index dfaa15967825e..b861882ab47d3 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusPrivateEndpointConnectionListResult.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceBus; namespace Azure.ResourceManager.ServiceBus.Models diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusPrivateLinkResource.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusPrivateLinkResource.cs index 9bdc72ee48f5c..55371ec098679 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusPrivateLinkResource.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/Models/ServiceBusPrivateLinkResource.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.ServiceBus; namespace Azure.ResourceManager.ServiceBus.Models { diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Internal/ChangeTrackingList.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..a8bc0f5eff44b --- /dev/null +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ServiceFabric +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ClusterCodeVersionsListResult.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ClusterCodeVersionsListResult.cs index 7ca456a30a459..fad5a1c6ba11f 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ClusterCodeVersionsListResult.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ClusterCodeVersionsListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ServiceFabric; namespace Azure.ResourceManager.ServiceFabric.Models { diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ClusterServerCertificateCommonNames.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ClusterServerCertificateCommonNames.cs index b225c0a81bce4..92f81ec6b88a8 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ClusterServerCertificateCommonNames.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ClusterServerCertificateCommonNames.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ServiceFabric; namespace Azure.ResourceManager.ServiceFabric.Models { diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationList.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationList.cs index 91e7d414795d4..b7264e28512a4 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationList.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceFabric; namespace Azure.ResourceManager.ServiceFabric.Models diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationPatch.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationPatch.cs index 74c740be6412e..99a9348843053 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationPatch.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationPatch.cs @@ -10,6 +10,7 @@ using Azure; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.ServiceFabric; namespace Azure.ResourceManager.ServiceFabric.Models { diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationTypeList.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationTypeList.cs index 9961ed56d443e..3850bb26a5e8b 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationTypeList.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationTypeList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceFabric; namespace Azure.ResourceManager.ServiceFabric.Models diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationTypeVersionList.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationTypeVersionList.cs index 94218247fdf84..ed45f1dde4017 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationTypeVersionList.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricApplicationTypeVersionList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceFabric; namespace Azure.ResourceManager.ServiceFabric.Models diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricClusterListResult.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricClusterListResult.cs index 0b9e8a515b699..d3ea535b4c45e 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricClusterListResult.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceFabric; namespace Azure.ResourceManager.ServiceFabric.Models diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricClusterPatch.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricClusterPatch.cs index a171119066c36..0f704426e5d78 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricClusterPatch.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricClusterPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ServiceFabric; namespace Azure.ResourceManager.ServiceFabric.Models { diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricServicePatch.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricServicePatch.cs index ab8340f6240cf..bdbc3047303d9 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricServicePatch.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceFabricServicePatch.cs @@ -10,6 +10,7 @@ using Azure; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.ServiceFabric; namespace Azure.ResourceManager.ServiceFabric.Models { diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceResourceList.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceResourceList.cs index 47550de79d12b..7a8bb2d05b85d 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceResourceList.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/ServiceResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceFabric; namespace Azure.ResourceManager.ServiceFabric.Models diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/UpgradableVersionPathResult.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/UpgradableVersionPathResult.cs index 5ae1f47647f25..f3ecd7be2be65 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/UpgradableVersionPathResult.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/UpgradableVersionPathResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ServiceFabric; namespace Azure.ResourceManager.ServiceFabric.Models { diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/VmSizesResult.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/VmSizesResult.cs index 78ec3dff227e8..979ce20d0fcd5 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/VmSizesResult.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Generated/Models/VmSizesResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceFabric; namespace Azure.ResourceManager.ServiceFabric.Models diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Internal/ChangeTrackingList.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..602189a9ac25d --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ServiceFabricManagedClusters +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationResourceList.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationResourceList.cs index 69549e0aa5749..85cca321ba153 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationResourceList.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationTypeResourceList.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationTypeResourceList.cs index c176ebe29b83e..835f95413b498 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationTypeResourceList.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationTypeResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationTypeVersionResourceList.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationTypeVersionResourceList.cs index 3138a83c66ca3..6f630b515abb6 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationTypeVersionResourceList.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationTypeVersionResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedAzResiliencyStatus.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedAzResiliencyStatus.cs index 821549e921be5..fe25cda3eb150 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedAzResiliencyStatus.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedAzResiliencyStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models { diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterListResult.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterListResult.cs index 2c19eae2aa996..03c1e5f8d072b 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterListResult.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterServiceEndpoint.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterServiceEndpoint.cs index 16828b3de0cd0..236ddf4b1ce38 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterServiceEndpoint.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterServiceEndpoint.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models { diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedServiceBaseProperties.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedServiceBaseProperties.cs index 28cdc38e652c3..ad20daea1072d 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedServiceBaseProperties.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedServiceBaseProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models { diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedVmSizesResult.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedVmSizesResult.cs index 87c0192e1121b..6147df893c7d9 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedVmSizesResult.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedVmSizesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models { diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeActionContent.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeActionContent.cs index 197eb98b2dcb7..a44039615ed85 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeActionContent.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeActionContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models { diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeListResult.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeListResult.cs index 968fcd9df6493..178f6b594267a 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeListResult.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeListSkuResult.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeListSkuResult.cs index c1bd2355bd320..04d21eed3f9be 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeListSkuResult.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeListSkuResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models { diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeVmssExtension.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeVmssExtension.cs index 1e90aba83a45b..96a9e14952e8e 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeVmssExtension.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeVmssExtension.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models { diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedClusterIPConfiguration.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedClusterIPConfiguration.cs index 2fe940012376b..32d55e37a79bc 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedClusterIPConfiguration.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedClusterIPConfiguration.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Resources.Models; +using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models { diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedClusterPublicIPAddressConfiguration.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedClusterPublicIPAddressConfiguration.cs index 015f203d14f56..4ef4e754169a0 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedClusterPublicIPAddressConfiguration.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedClusterPublicIPAddressConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models { diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNetworkSecurityRule.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNetworkSecurityRule.cs index 847292c5a3563..5c5ac54874cff 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNetworkSecurityRule.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNetworkSecurityRule.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models { diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceResourceList.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceResourceList.cs index 4498047e723fd..cb64be4d870e1 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceResourceList.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/VmManagedIdentity.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/VmManagedIdentity.cs index 06c1b954a85d9..288e37bb7bda8 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/VmManagedIdentity.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/VmManagedIdentity.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ServiceFabricManagedClusters; namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models { diff --git a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Internal/ChangeTrackingList.cs b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..d3a034a7eafef --- /dev/null +++ b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ServiceLinker +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/LinkerList.cs b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/LinkerList.cs index e52662cc7d6d1..9189f38754d2d 100644 --- a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/LinkerList.cs +++ b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/LinkerList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.ServiceLinker; namespace Azure.ResourceManager.ServiceLinker.Models diff --git a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/LinkerValidateOperationResult.cs b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/LinkerValidateOperationResult.cs index b0abe0b61df41..a032a52fc7d6b 100644 --- a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/LinkerValidateOperationResult.cs +++ b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/LinkerValidateOperationResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.ServiceLinker; namespace Azure.ResourceManager.ServiceLinker.Models { diff --git a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/SourceConfigurationResult.cs b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/SourceConfigurationResult.cs index 5874f1ce732ab..0eccd77e5719d 100644 --- a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/SourceConfigurationResult.cs +++ b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/Generated/Models/SourceConfigurationResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.ServiceLinker; namespace Azure.ResourceManager.ServiceLinker.Models { diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Internal/ChangeTrackingList.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..5f375910ebc79 --- /dev/null +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ServiceNetworking +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Internal/ChangeTrackingList.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..43d94e26f090c --- /dev/null +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.SignalR +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/ServerlessUpstreamSettings.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/ServerlessUpstreamSettings.cs index 662074da72ec3..44302f9d781fc 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/ServerlessUpstreamSettings.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/ServerlessUpstreamSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models { diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCorsSettings.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCorsSettings.cs index 488e8c1c12465..0b5f304edb08c 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCorsSettings.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCorsSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models { diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCustomCertificateListResult.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCustomCertificateListResult.cs index 5df9d5cc79004..a7af8d1389474 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCustomCertificateListResult.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCustomCertificateListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCustomDomainListResult.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCustomDomainListResult.cs index 2cd127c2c9fd1..69d75924462b8 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCustomDomainListResult.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRCustomDomainListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRLiveTraceConfiguration.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRLiveTraceConfiguration.cs index 5aaa3f5cb59db..0a85bf7fa0f31 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRLiveTraceConfiguration.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRLiveTraceConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models { diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRNetworkAcl.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRNetworkAcl.cs index c3de27495ec79..e2b364814b9a9 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRNetworkAcl.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRNetworkAcl.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models { diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRNetworkAcls.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRNetworkAcls.cs index 4d7cc2dc941c2..53f34a14d10f4 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRNetworkAcls.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRNetworkAcls.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models { diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateEndpointConnectionListResult.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateEndpointConnectionListResult.cs index c6037c8b81ad9..ec22489b2a1a2 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateEndpointConnectionListResult.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateLinkResource.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateLinkResource.cs index 3388f3a2395af..8f1ad57035a60 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateLinkResource.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateLinkResource.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models { diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateLinkResourceListResult.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateLinkResourceListResult.cs index 2a3cc55c5bc2e..07f13333b6078 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateLinkResourceListResult.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRPrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models { diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRResourceList.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRResourceList.cs index 7bcc79b0ef4bf..47508f2ae181c 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRResourceList.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRResourceLogCategoryListResult.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRResourceLogCategoryListResult.cs index 64c9f1b42ee9d..78a152d3add93 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRResourceLogCategoryListResult.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRResourceLogCategoryListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models { diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSharedPrivateLinkResourceListResult.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSharedPrivateLinkResourceListResult.cs index 35f1113d6d570..dde8edec6db62 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSharedPrivateLinkResourceListResult.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSharedPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSkuCapacity.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSkuCapacity.cs index 14a628f374774..292d0ee1526cf 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSkuCapacity.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSkuCapacity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models { diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSkuListResult.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSkuListResult.cs index 49ece2922efb0..e858296b6423d 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSkuListResult.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRSkuListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models { diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRUsageList.cs b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRUsageList.cs index c5db57236fff5..ed18894787937 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRUsageList.cs +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Generated/Models/SignalRUsageList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SignalR; namespace Azure.ResourceManager.SignalR.Models { diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Internal/ChangeTrackingList.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..914372e8f58ef --- /dev/null +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Sphere +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Internal/ChangeTrackingList.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..32ba343c095b7 --- /dev/null +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.SpringAppDiscovery +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/ErrorSummaryList.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/ErrorSummaryList.cs index f088353aad390..3fd6a02154458 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/ErrorSummaryList.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/ErrorSummaryList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SpringAppDiscovery; namespace Azure.ResourceManager.SpringAppDiscovery.Models diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootAppList.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootAppList.cs index ef47aa5fd277f..f0298be2cd265 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootAppList.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootAppList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SpringAppDiscovery; namespace Azure.ResourceManager.SpringAppDiscovery.Models diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootAppProperties.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootAppProperties.cs index 9de6cba95ffe0..25e2a35443af1 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootAppProperties.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootAppProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.SpringAppDiscovery; namespace Azure.ResourceManager.SpringAppDiscovery.Models { diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootServerList.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootServerList.cs index 528f9c2a4a13b..d2c015f5e83e0 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootServerList.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootServerList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SpringAppDiscovery; namespace Azure.ResourceManager.SpringAppDiscovery.Models diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootServerProperties.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootServerProperties.cs index c7f78be43782a..49565402bd697 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootServerProperties.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootServerProperties.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Net; using Azure.Core; +using Azure.ResourceManager.SpringAppDiscovery; namespace Azure.ResourceManager.SpringAppDiscovery.Models { diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteErrorSummariesProperties.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteErrorSummariesProperties.cs index 2103ee62d116c..a7569f5b582f8 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteErrorSummariesProperties.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteErrorSummariesProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SpringAppDiscovery; namespace Azure.ResourceManager.SpringAppDiscovery.Models { diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteList.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteList.cs index 16b871a7522b4..eca27ba92ea59 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteList.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SpringAppDiscovery; namespace Azure.ResourceManager.SpringAppDiscovery.Models diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteSummariesProperties.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteSummariesProperties.cs index 02e2bc876077c..8dca42aa26cdc 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteSummariesProperties.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SpringBootSiteSummariesProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SpringAppDiscovery; namespace Azure.ResourceManager.SpringAppDiscovery.Models { diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SummaryList.cs b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SummaryList.cs index a11ceacce4c25..835a9b4d8c458 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SummaryList.cs +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/Generated/Models/SummaryList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SpringAppDiscovery; namespace Azure.ResourceManager.SpringAppDiscovery.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Internal/ChangeTrackingList.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..720a847225f00 --- /dev/null +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Sql +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AdministratorListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AdministratorListResult.cs index d4327e6df6eea..29df5922814e2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AdministratorListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AdministratorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AzureADOnlyAuthListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AzureADOnlyAuthListResult.cs index c35a41d99c913..b1be448313e95 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AzureADOnlyAuthListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/AzureADOnlyAuthListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/BackupShortTermRetentionPolicyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/BackupShortTermRetentionPolicyListResult.cs index 0bb8d4046f77b..c96149e0d64d4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/BackupShortTermRetentionPolicyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/BackupShortTermRetentionPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingRuleListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingRuleListResult.cs index e25f471f03b70..ef245a93f4bee 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingRuleListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataMaskingRuleListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataWarehouseUserActivitiesListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataWarehouseUserActivitiesListResult.cs index f6816953815ae..bd682104af351 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataWarehouseUserActivitiesListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DataWarehouseUserActivitiesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseAdvancedThreatProtectionListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseAdvancedThreatProtectionListResult.cs index 1c48430b9b4a8..26218e968c843 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseAdvancedThreatProtectionListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseAdvancedThreatProtectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseBlobAuditingPolicyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseBlobAuditingPolicyListResult.cs index 808e5d18110b2..645d6dd7e0487 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseBlobAuditingPolicyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseBlobAuditingPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseColumnListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseColumnListResult.cs index 1f59635e2ed15..412f4fc24ecad 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseColumnListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseColumnListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseListResult.cs index 91189d77151b8..96e84a41b53be 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseOperationListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseOperationListResult.cs index cbf3a0cc3293b..290febb142643 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseOperationListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseOperationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSchemaListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSchemaListResult.cs index e8c1d2ef2ab17..81e6f5c2c7a12 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSchemaListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSchemaListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSecurityAlertListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSecurityAlertListResult.cs index 5f43aed523ff1..0abc0b7ff42b0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSecurityAlertListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSecurityAlertListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSqlVulnerabilityAssessmentBaselineSetListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSqlVulnerabilityAssessmentBaselineSetListResult.cs index cfe133f3afb85..aa75d0956cac2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSqlVulnerabilityAssessmentBaselineSetListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSqlVulnerabilityAssessmentBaselineSetListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult.cs index 5164c9059c691..51b7987825381 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseTableListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseTableListResult.cs index 9be8cb28b8f64..3b478c58e1a88 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseTableListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseTableListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseUsageListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseUsageListResult.cs index 5fcb14d4191a7..d9cee067cad64 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseUsageListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseUsageListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentListResult.cs index 3dce4d31e4d5d..867d653cb4907 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DeletedServerListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DeletedServerListResult.cs index 70bfb6a6ede30..b1b45334781c0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DeletedServerListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DeletedServerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DistributedAvailabilityGroupsListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DistributedAvailabilityGroupsListResult.cs index 636d719ab6d0e..370fbbd268e3e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DistributedAvailabilityGroupsListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/DistributedAvailabilityGroupsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EditionCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EditionCapability.cs index cb25fbd97b223..40b488a1f3326 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EditionCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EditionCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolEditionCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolEditionCapability.cs index 5f92ce8c897bd..a3e31ee5da329 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolEditionCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolEditionCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolListResult.cs index 092755e3261cc..cdb4628bb9b95 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolOperationListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolOperationListResult.cs index 3edca8aa91115..c134d3e46fb72 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolOperationListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolOperationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs index 095bcc88f5730..cf91d7545b702 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs index b35d399ff57d5..92414b35e0c90 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EncryptionProtectorListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EncryptionProtectorListResult.cs index d64f18f2bc1d5..379efb96f935f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EncryptionProtectorListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EncryptionProtectorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EndpointCertificateListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EndpointCertificateListResult.cs index 2dec7339184d6..8be320fe1d637 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EndpointCertificateListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/EndpointCertificateListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicyListResult.cs index c7f05f27bd900..3e6d6b55f566e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ExtendedServerBlobAuditingPolicyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ExtendedServerBlobAuditingPolicyListResult.cs index f8c6e573c8349..070f562e68c23 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ExtendedServerBlobAuditingPolicyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ExtendedServerBlobAuditingPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupListResult.cs index 1c83a3dcd58d1..b5d7ef91b2d9a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupPatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupPatch.cs index 0ae89d5600e63..a544b71a79dfa 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupPatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FailoverGroupPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FirewallRuleListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FirewallRuleListResult.cs index 88f15fd7d23d3..f0942a7f1a4b1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FirewallRuleListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/FirewallRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/GeoBackupPolicyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/GeoBackupPolicyListResult.cs index fb347fe5068db..a8ae6f7bf7fcc 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/GeoBackupPolicyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/GeoBackupPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/IPv6FirewallRuleListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/IPv6FirewallRuleListResult.cs index 4dffbd7f6c153..012e05f437624 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/IPv6FirewallRuleListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/IPv6FirewallRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportExtensionsOperationListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportExtensionsOperationListResult.cs index 88d45e4437777..6a061c55eb9bd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportExtensionsOperationListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportExtensionsOperationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportOperationResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportOperationResult.cs index 23bcbb09035ea..77a23d759ed4a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportOperationResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ImportExportOperationResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupListResult.cs index 8315e56f8c810..88114bc3a620f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstanceFailoverGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolEditionCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolEditionCapability.cs index e85cc2750833b..e25984299faa5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolEditionCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolEditionCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolFamilyCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolFamilyCapability.cs index 4dfbc62e8ad35..e95012fc4bb82 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolFamilyCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolFamilyCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolListResult.cs index 815329467c228..4bff9158c445a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolUsageListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolUsageListResult.cs index c6beebf0e8c76..caf661fb08990 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolUsageListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/InstancePoolUsageListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobAgentListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobAgentListResult.cs index a324fb4975252..31a38f7703311 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobAgentListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobAgentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobCredentialListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobCredentialListResult.cs index b9fcdb3e36dae..754ac4938d352 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobCredentialListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobCredentialListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobExecutionListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobExecutionListResult.cs index bc2c29f32098f..73cf4bd6ad077 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobExecutionListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobExecutionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobListResult.cs index e846f269c985f..092fdf5a69ef4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepListResult.cs index bb4ad9d3a7abe..cf2b5954baf49 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobStepListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobTargetGroupListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobTargetGroupListResult.cs index 616b0d6430c32..2083cbc158789 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobTargetGroupListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobTargetGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobVersionListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobVersionListResult.cs index 0bcb94b79e0f9..d4777f0ade167 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobVersionListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/JobVersionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LedgerDigestUploadsListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LedgerDigestUploadsListResult.cs index 15cb5d3d3c829..cf99641d55b41 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LedgerDigestUploadsListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LedgerDigestUploadsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalDatabaseTransparentDataEncryptionListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalDatabaseTransparentDataEncryptionListResult.cs index 33df18e9a318c..8eef2ec468365 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalDatabaseTransparentDataEncryptionListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalDatabaseTransparentDataEncryptionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalServerAdvancedThreatProtectionListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalServerAdvancedThreatProtectionListResult.cs index fbc8e8df277e7..02e665b28449e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalServerAdvancedThreatProtectionListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalServerAdvancedThreatProtectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalServerSecurityAlertPolicyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalServerSecurityAlertPolicyListResult.cs index 577364bebefc8..674c6293f3d8f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalServerSecurityAlertPolicyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LogicalServerSecurityAlertPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionBackupListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionBackupListResult.cs index 351e7b566a692..b77bfa6193797 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionBackupListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionBackupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionPolicyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionPolicyListResult.cs index dfb7481d72651..9798841c5e328 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionPolicyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/LongTermRetentionPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedBackupShortTermRetentionPolicyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedBackupShortTermRetentionPolicyListResult.cs index 361e6808e64f6..9fdc439c50932 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedBackupShortTermRetentionPolicyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedBackupShortTermRetentionPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseAdvancedThreatProtectionListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseAdvancedThreatProtectionListResult.cs index 7553aab93a28f..179911727d65e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseAdvancedThreatProtectionListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseAdvancedThreatProtectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseListResult.cs index 38420fdc94471..3934c00ef8517 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseSecurityAlertPolicyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseSecurityAlertPolicyListResult.cs index cabac5c4e84cb..e61c12737f404 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseSecurityAlertPolicyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedDatabaseSecurityAlertPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAdministratorListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAdministratorListResult.cs index 9d9ade7b442c2..fcc82bc821fb7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAdministratorListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAdministratorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAdvancedThreatProtectionListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAdvancedThreatProtectionListResult.cs index 3f670ab375886..57be1604053ac 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAdvancedThreatProtectionListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAdvancedThreatProtectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAzureADOnlyAuthListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAzureADOnlyAuthListResult.cs index 5ae319af852a3..5afe34f81c49a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAzureADOnlyAuthListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceAzureADOnlyAuthListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcListResult.cs index 4c833de2036fe..d2d78f06a9380 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceDtcListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEditionCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEditionCapability.cs index 007392f9d6608..310abc7bb5e85 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEditionCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEditionCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEncryptionProtectorListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEncryptionProtectorListResult.cs index c4bc8c80221f8..34e25c6b00d64 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEncryptionProtectorListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEncryptionProtectorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEndpointDependency.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEndpointDependency.cs index 2ef0fd22fe60a..6c21c9c4bda4e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEndpointDependency.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceEndpointDependency.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceFamilyCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceFamilyCapability.cs index 644793fb23b3b..da0556c1d058f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceFamilyCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceFamilyCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceKeyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceKeyListResult.cs index 090b2c9688af3..0df9052ffd711 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceKeyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceKeyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceListResult.cs index 89bc0e0600835..96944f921af86 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionBackupListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionBackupListResult.cs index 70cda0bb0676f..1c3f5771c5067 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionBackupListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionBackupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionPolicyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionPolicyListResult.cs index c82f3e6ec5276..26a0fe6a3f1fc 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionPolicyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceLongTermRetentionPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationListResult.cs index 53ccc3417ef28..3d2f7fb0dc920 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationSteps.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationSteps.cs index 8c1c311dfd532..12267391df432 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationSteps.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceOperationSteps.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs index 7b0f9b3f22c6c..06bbad8c576fe 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePatch.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionListResult.cs index 3e081e6b19fe1..15d92540e04e6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkListResult.cs index 66719117f48e7..6f179f17df0ae 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkProperties.cs index 48175dae69724..c5d579de9b5e9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstancePrivateLinkProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceQueryStatistics.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceQueryStatistics.cs index eb3fa607c3355..8f6d83f911b43 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceQueryStatistics.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceQueryStatistics.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVcoresCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVcoresCapability.cs index 269073b930efb..2a0835b004442 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVcoresCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVcoresCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVersionCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVersionCapability.cs index 397a410fcb717..32cf78def2b0e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVersionCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVersionCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVulnerabilityAssessmentListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVulnerabilityAssessmentListResult.cs index bf3932c7799ec..015ab59296737 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVulnerabilityAssessmentListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceVulnerabilityAssessmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedLedgerDigestUploadsListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedLedgerDigestUploadsListResult.cs index 49229f616abe5..293aa39ecebc1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedLedgerDigestUploadsListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedLedgerDigestUploadsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasListResult.cs index 099c597d6718d..c19d2f3a0918f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerDnsAliasListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerSecurityAlertPolicyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerSecurityAlertPolicyListResult.cs index 24255cf45418a..989f5adc6becd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerSecurityAlertPolicyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedServerSecurityAlertPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedTransparentDataEncryptionListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedTransparentDataEncryptionListResult.cs index 6ef2adba535f1..f4510160460d3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedTransparentDataEncryptionListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedTransparentDataEncryptionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/OutboundFirewallRuleListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/OutboundFirewallRuleListResult.cs index 407acac28f6a2..c0fb839cc1827 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/OutboundFirewallRuleListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/OutboundFirewallRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryMetricInterval.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryMetricInterval.cs index dc261d7054151..0e77321111a55 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryMetricInterval.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryMetricInterval.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatistics.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatistics.cs index 3019c69042845..1e05bac1519f9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatistics.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatistics.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatisticsProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatisticsProperties.cs index d24e24e52b420..442b04400d598 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatisticsProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/QueryStatisticsProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdateList.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdateList.cs index f72218560233d..2b4541a01d268 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdateList.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecommendedSensitivityLabelUpdateList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseListResult.cs index 925a32e4f1ba0..e1bb5ee52af8e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableDatabaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableManagedDatabaseListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableManagedDatabaseListResult.cs index b21cad1c5e2e9..28c4c4e552cd5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableManagedDatabaseListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RecoverableManagedDatabaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ReplicationLinkListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ReplicationLinkListResult.cs index d1694a86767d1..93cbf03de85bb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ReplicationLinkListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ReplicationLinkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedDatabaseListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedDatabaseListResult.cs index 0dfd0eb2e874f..d16d7a9c8fb97 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedDatabaseListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedDatabaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedManagedDatabaseListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedManagedDatabaseListResult.cs index 5d309c07606d8..1e66440b2cd0a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedManagedDatabaseListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorableDroppedManagedDatabaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorePointListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorePointListResult.cs index 976894d50f91f..e989d2dea5e27 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorePointListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/RestorePointListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEventCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEventCollection.cs index 5f0ef2cb17d9c..3005429137de4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEventCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SecurityEventCollection.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelListResult.cs index ed8a02a1ba77b..7f8bde1af73c3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdateList.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdateList.cs index 485416eb2d08c..b91c4df8a5a0f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdateList.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SensitivityLabelUpdateList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerBlobAuditingPolicyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerBlobAuditingPolicyListResult.cs index bd5364ca9993b..23b234c8b7bc7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerBlobAuditingPolicyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerBlobAuditingPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerCommunicationLinkListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerCommunicationLinkListResult.cs index 5a71a1c299946..8e44e9b449439 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerCommunicationLinkListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerCommunicationLinkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerConfigurationOptionListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerConfigurationOptionListResult.cs index 808d23e0ce10f..fc177027ae704 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerConfigurationOptionListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerConfigurationOptionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerConnectionPolicyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerConnectionPolicyListResult.cs index 47e7a566a118d..93195f5a6c04a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerConnectionPolicyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerConnectionPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerDevOpsAuditSettingsListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerDevOpsAuditSettingsListResult.cs index 43655349e270d..3bd36a5b17ca1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerDevOpsAuditSettingsListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerDevOpsAuditSettingsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerDnsAliasListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerDnsAliasListResult.cs index 0d979f058ea7d..1148ec6cbca00 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerDnsAliasListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerDnsAliasListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerKeyListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerKeyListResult.cs index a6e3244d8b8c7..5bb9940b5fad4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerKeyListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerKeyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerListResult.cs index 9a933e4f982b1..cc6d342d9c9cf 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerOperationListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerOperationListResult.cs index aa8f437ddef39..ae912d36e0f57 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerOperationListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerOperationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerPrivateEndpointConnectionProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerPrivateEndpointConnectionProperties.cs index 64845a056bf27..ffb5aed793d21 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerPrivateEndpointConnectionProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerPrivateEndpointConnectionProperties.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Resources.Models; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerTrustCertificatesListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerTrustCertificatesListResult.cs index 783dde59ecb1d..eb8315c2f67eb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerTrustCertificatesListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerTrustCertificatesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerTrustGroupListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerTrustGroupListResult.cs index b43e393b7b780..cff78c6254a13 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerTrustGroupListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerTrustGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerVulnerabilityAssessmentListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerVulnerabilityAssessmentListResult.cs index 8cd6ecb6a7ec8..779e5c4d08812 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerVulnerabilityAssessmentListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServerVulnerabilityAssessmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServiceObjectiveCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServiceObjectiveCapability.cs index 5b7894cb27260..b9fcd81beecfd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServiceObjectiveCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ServiceObjectiveCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlLocationCapabilities.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlLocationCapabilities.cs index 03d58ef4e2682..b8fcac44855f8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlLocationCapabilities.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlLocationCapabilities.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetric.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetric.cs index 231b4a503ee1a..6970735344e27 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetric.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetric.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricDefinition.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricDefinition.cs index c7675e091c4e1..54151f214cea9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricDefinition.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlMetricDefinition.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlOutboundEnvironmentEndpoint.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlOutboundEnvironmentEndpoint.cs index 0fadfee2e67be..c36482babc5c3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlOutboundEnvironmentEndpoint.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlOutboundEnvironmentEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlOutboundEnvironmentEndpointCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlOutboundEnvironmentEndpointCollection.cs index f711c0530f656..433e9295bc4d0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlOutboundEnvironmentEndpointCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlOutboundEnvironmentEndpointCollection.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateEndpointConnectionListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateEndpointConnectionListResult.cs index a59abfc6b8ee3..8606acb3b8aa0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateEndpointConnectionListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResourceListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResourceListResult.cs index dfce074eff353..6dafc049e0e08 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResourceListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResourceProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResourceProperties.cs index 28f032ca5f1f6..d3624286f6f14 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResourceProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlPrivateLinkResourceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPatch.cs index 8de5d0d4e4ebc..875431052f555 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerPatch.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerVersionCapability.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerVersionCapability.cs index dae5819e58fe1..555aba8c80bab 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerVersionCapability.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerVersionCapability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSynapseLinkWorkspace.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSynapseLinkWorkspace.cs index 192ed1830dcae..0c3f4d89d3dbf 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSynapseLinkWorkspace.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlSynapseLinkWorkspace.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineAdjustedResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineAdjustedResult.cs index fa2051de2540c..615cd3644622d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineAdjustedResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineAdjustedResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineDetails.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineDetails.cs index dacc38ad2cffa..f94786c880080 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineDetails.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent.cs index e9864a05ca019..8a2b36ecf0e5b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentBaselineRuleCreateOrUpdateContent.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentListResult.cs index dba79c14bcac2..39465adc1b62a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentQueryCheck.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentQueryCheck.cs index 9bb13ccbba795..1d06ce71af9ee 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentQueryCheck.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentQueryCheck.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRemediation.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRemediation.cs index f5fb5f6d45c33..60a44c26c6899 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRemediation.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRemediation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRuleMetadata.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRuleMetadata.cs index 414b3aad70a52..0cefdb7d76af0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRuleMetadata.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentRuleMetadata.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanListResult.cs index 32f2a4107e3c3..817bd2debc079 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanRecordListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanRecordListResult.cs index d0d72073a1431..1248db8d48071 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanRecordListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlVulnerabilityAssessmentScanRecordListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/StartStopManagedInstanceScheduleListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/StartStopManagedInstanceScheduleListResult.cs index 6c51e1d72cd08..d06ea8d78b0a5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/StartStopManagedInstanceScheduleListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/StartStopManagedInstanceScheduleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SubscriptionUsageListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SubscriptionUsageListResult.cs index 2eb6b9ab5a9c2..b7cd8cd788736 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SubscriptionUsageListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SubscriptionUsageListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SynapseLinkWorkspaceListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SynapseLinkWorkspaceListResult.cs index 04a6c2c0783c8..37a2cf053b99b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SynapseLinkWorkspaceListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SynapseLinkWorkspaceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentLinkedDatabaseListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentLinkedDatabaseListResult.cs index b5b2a61b8de4d..7a4cc2ed69be3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentLinkedDatabaseListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentLinkedDatabaseListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentListResult.cs index 4e9ef49c8c55b..96c1efce49982 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncAgentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncDatabaseIdListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncDatabaseIdListResult.cs index b6839140cd902..227d7e01745fb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncDatabaseIdListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncDatabaseIdListResult.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Resources.Models; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaProperties.cs index a0ed3bb0eda93..6ebd168c84371 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaPropertiesListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaPropertiesListResult.cs index 414a8f34eaab8..ad7601fbc8a26 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaPropertiesListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaPropertiesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaTable.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaTable.cs index 823a21b659be2..03051d96b463d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaTable.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncFullSchemaTable.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupListResult.cs index b91834ad1d79c..1fab26b954e47 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupLogListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupLogListResult.cs index 557cc26ce2c34..6867f4e530686 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupLogListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupLogListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchema.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchema.cs index fb0c4d7c0a558..3be3bc6c85027 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchema.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchema.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchemaTable.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchemaTable.cs index 2a4bea5ac418a..2da5ca6d3246e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchemaTable.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncGroupSchemaTable.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncMemberListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncMemberListResult.cs index a16f4979d8f88..d98c5a9b89cc6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncMemberListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SyncMemberListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TimeZoneListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TimeZoneListResult.cs index 59adb03e21f5b..73371321da6dd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TimeZoneListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TimeZoneListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TopQueries.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TopQueries.cs index 2432c23665570..2fd23cd8ba5c2 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TopQueries.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TopQueries.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TopQueriesListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TopQueriesListResult.cs index 0b5324350b933..7d1d90957428a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TopQueriesListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/TopQueriesListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterListResult.cs index 4b5a1ee7b1322..152733cb9d921 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterPatch.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterPatch.cs index 1921f895223b1..7d3be307480bf 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterPatch.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualClusterPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualNetworkRuleListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualNetworkRuleListResult.cs index 80393658fe3a4..215500087645c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualNetworkRuleListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VirtualNetworkRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs index e7c56ace36926..362a6f9551d59 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentScanRecordListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentScanRecordListResult.cs index 33d4dd6fb8af8..d47d87b23edc4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentScanRecordListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/VulnerabilityAssessmentScanRecordListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/WorkloadClassifierListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/WorkloadClassifierListResult.cs index d18986158b9b0..6ffd87709a448 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/WorkloadClassifierListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/WorkloadClassifierListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/WorkloadGroupListResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/WorkloadGroupListResult.cs index 32b0d57a79385..8ca9c31afc3a6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/WorkloadGroupListResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/WorkloadGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Sql; namespace Azure.ResourceManager.Sql.Models diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Internal/ChangeTrackingList.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..4fc507db04eee --- /dev/null +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.SqlVirtualMachine +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupConfiguration.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupConfiguration.cs index 3d744aef14b04..bf1ade2350fad 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupConfiguration.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SqlVirtualMachine; namespace Azure.ResourceManager.SqlVirtualMachine.Models { diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListenerListResult.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListenerListResult.cs index bd64765fc544f..a8267b505b54d 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListenerListResult.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListenerListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SqlVirtualMachine; namespace Azure.ResourceManager.SqlVirtualMachine.Models diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListenerLoadBalancerConfiguration.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListenerLoadBalancerConfiguration.cs index 4762cc167a4ab..b3748349d9f1b 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListenerLoadBalancerConfiguration.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/AvailabilityGroupListenerLoadBalancerConfiguration.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.SqlVirtualMachine; namespace Azure.ResourceManager.SqlVirtualMachine.Models { diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlStorageSettings.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlStorageSettings.cs index 9a81af1249343..50480f4ace143 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlStorageSettings.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlStorageSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SqlVirtualMachine; namespace Azure.ResourceManager.SqlVirtualMachine.Models { diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlTempDBSettings.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlTempDBSettings.cs index 03bc49aa3ab27..a520f0f534996 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlTempDBSettings.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlTempDBSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SqlVirtualMachine; namespace Azure.ResourceManager.SqlVirtualMachine.Models { diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmAutoBackupSettings.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmAutoBackupSettings.cs index a8279db480e71..3d0b876eb2930 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmAutoBackupSettings.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmAutoBackupSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.SqlVirtualMachine; namespace Azure.ResourceManager.SqlVirtualMachine.Models { diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmGroupListResult.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmGroupListResult.cs index 1d35c193037ac..fae2e3a01a4d9 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmGroupListResult.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SqlVirtualMachine; namespace Azure.ResourceManager.SqlVirtualMachine.Models diff --git a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmListResult.cs b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmListResult.cs index 95a466f96a561..2eed43ae4f2c5 100644 --- a/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmListResult.cs +++ b/sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/src/Generated/Models/SqlVmListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.SqlVirtualMachine; namespace Azure.ResourceManager.SqlVirtualMachine.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Internal/ChangeTrackingList.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..d1f49591ede3d --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Storage +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerImmutabilityPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerImmutabilityPolicy.cs index 05eb1b02bf732..284c2d9d39520 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerImmutabilityPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobContainerImmutabilityPolicy.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyFilter.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyFilter.cs index fa590c193736c..5da7877b5a9f3 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyFilter.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobInventoryPolicyFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobServiceItems.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobServiceItems.cs index c337d01a3de29..67f53b4c1bc7d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobServiceItems.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/BlobServiceItems.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeletedAccountListResult.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeletedAccountListResult.cs index e6a4facab6751..346ada0522a0c 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeletedAccountListResult.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DeletedAccountListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionScopeListResult.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionScopeListResult.cs index 4fbcd06cc00ec..4bd233a7fe6dd 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionScopeListResult.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionScopeListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileServiceItems.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileServiceItems.cs index 1e6e9c69844e2..32487d564e17e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileServiceItems.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileServiceItems.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileShareItems.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileShareItems.cs index 3d12cd09d2a0d..559a59060af20 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileShareItems.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FileShareItems.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LastAccessTimeTrackingPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LastAccessTimeTrackingPolicy.cs index c6329d507f832..da4c593ea4c87 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LastAccessTimeTrackingPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LastAccessTimeTrackingPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHoldProperties.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHoldProperties.cs index 9b58bf5dcff08..8637eb2617d37 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHoldProperties.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LegalHoldProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListBlobInventoryPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListBlobInventoryPolicy.cs index 0a1be17bfe83e..80f3051b83de3 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListBlobInventoryPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListBlobInventoryPolicy.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListContainerItems.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListContainerItems.cs index 29e8dadc224e5..db33aaa561bbe 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListContainerItems.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListContainerItems.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListQueueResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListQueueResource.cs index b99073300e30c..32b2ac74c0951 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListQueueResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListQueueResource.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListQueueServices.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListQueueServices.cs index 20308e6f9e570..b17b49899f36c 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListQueueServices.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListQueueServices.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListTableResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListTableResource.cs index 3dca909d7cef4..e2b09239987e1 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListTableResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListTableResource.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListTableServices.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListTableServices.cs index 87f9d633fb336..75dce614ec574 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListTableServices.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ListTableServices.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUserKeys.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUserKeys.cs index db1443b7beff4..e7a865d94f4aa 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUserKeys.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUserKeys.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUsers.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUsers.cs index 0f7d466d8bd28..b93f4289c2c5d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUsers.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/LocalUsers.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyFilter.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyFilter.cs index b8ac87e8e7f20..956e5ffc1c2e4 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyFilter.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ManagementPolicyFilter.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicies.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicies.cs index e88001e429550..48e3efff74e1f 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicies.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicies.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyFilter.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyFilter.cs index 5d6b90a4913aa..e78d0d515be5f 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyFilter.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ObjectReplicationPolicyFilter.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountGetKeysResult.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountGetKeysResult.cs index f1ee240403d94..d21fc45c10bc7 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountGetKeysResult.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountGetKeysResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountListResult.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountListResult.cs index 0fa9a8cf1b321..d082f3bcf1a4f 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountListResult.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs index dff5a97414db0..0855d5bf17863 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCorsRules.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCorsRules.cs index 7afa5b7d20cc3..91adc298d3ffe 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCorsRules.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageCorsRules.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateEndpointConnectionListResult.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateEndpointConnectionListResult.cs index 23e54379296da..239ec48874e15 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateEndpointConnectionListResult.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceData.cs index 22569256135c3..520e341e04d7b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceListResult.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceListResult.cs index c27388cb0731c..cb1e4c78c56aa 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceListResult.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StoragePrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.cs index 0ce783455adaa..42534cd86d2b0 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuListResult.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuListResult.cs index 2aa91e8652ed4..9aff36421a41b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuListResult.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuRestriction.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuRestriction.cs index b8c3bff8c3a34..375e67d1be6f9 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuRestriction.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuRestriction.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/UsageListResult.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/UsageListResult.cs index 8f3b5ead6a38f..1d7a840a834fa 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/UsageListResult.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/UsageListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Storage; namespace Azure.ResourceManager.Storage.Models { diff --git a/sdk/storage/Azure.Storage.Blobs.Batch/src/Generated/Internal/ChangeTrackingList.cs b/sdk/storage/Azure.Storage.Blobs.Batch/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..570546df056e0 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs.Batch/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Storage.Blobs.Batch +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Internal/ChangeTrackingList.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..ba71932795793 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Storage.Blobs +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobHierarchyListSegment.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobHierarchyListSegment.cs index 7ee9bec1ff967..5645f28d7987a 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobHierarchyListSegment.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobHierarchyListSegment.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.Storage.Blobs; namespace Azure.Storage.Blobs.Models { diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobServiceProperties.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobServiceProperties.cs index 88babedfe4e51..8fef2633e6513 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobServiceProperties.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlobServiceProperties.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Storage.Blobs; namespace Azure.Storage.Blobs.Models { diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlockList.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlockList.cs index b25d022b0be2c..08eac5a2e7f14 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlockList.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlockList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Storage.Blobs; namespace Azure.Storage.Blobs.Models { diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlockLookupList.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlockLookupList.cs index bce79c906c908..e3b35132af93f 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlockLookupList.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/BlockLookupList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Storage.Blobs; namespace Azure.Storage.Blobs.Models { diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/PageList.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/PageList.cs index e20f4235a7117..cf76aa559e5a9 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/PageList.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/PageList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Storage.Blobs; namespace Azure.Storage.Blobs.Models { diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Internal/ChangeTrackingList.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..5d901bedde727 --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Storage.Files.DataLake +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/BlobHierarchyListSegment.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/BlobHierarchyListSegment.cs index b990b3caa9822..0da8ddf3811b9 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/BlobHierarchyListSegment.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/BlobHierarchyListSegment.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.Storage.Files.DataLake; namespace Azure.Storage.Files.DataLake.Models { diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystemList.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystemList.Serialization.cs index e4d05848a6453..b4054930ea706 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystemList.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystemList.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Storage.Files.DataLake; namespace Azure.Storage.Files.DataLake.Models { diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystemList.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystemList.cs index b2b7e73002612..577a4ce9dd448 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystemList.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystemList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Storage.Files.DataLake; namespace Azure.Storage.Files.DataLake.Models { diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathList.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathList.Serialization.cs index dc314600d88d2..194e1275c07d5 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathList.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathList.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Storage.Files.DataLake; namespace Azure.Storage.Files.DataLake.Models { diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathList.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathList.cs index 8cd0679bdb9de..4c4cd486201ea 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathList.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Storage.Files.DataLake; namespace Azure.Storage.Files.DataLake.Models { diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/SetAccessControlRecursiveResponse.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/SetAccessControlRecursiveResponse.Serialization.cs index 7df9c169e912e..8111e3ecf25ab 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/SetAccessControlRecursiveResponse.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/SetAccessControlRecursiveResponse.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Storage.Files.DataLake; namespace Azure.Storage.Files.DataLake.Models { diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/SetAccessControlRecursiveResponse.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/SetAccessControlRecursiveResponse.cs index cc990aa9a8330..335e3c2aa0a92 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/SetAccessControlRecursiveResponse.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/SetAccessControlRecursiveResponse.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Storage.Files.DataLake; namespace Azure.Storage.Files.DataLake.Models { diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Internal/ChangeTrackingList.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..fb797554faa66 --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Storage.Files.Shares +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/HandleItem.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/HandleItem.cs index 283a0d424499f..e40a08861e045 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/HandleItem.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/HandleItem.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Storage.Files.Shares; namespace Azure.Storage.Files.Shares.Models { diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListHandlesResponse.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListHandlesResponse.cs index cfe0f5ff1d2bb..ae2be0008a541 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListHandlesResponse.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListHandlesResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Storage.Files.Shares; namespace Azure.Storage.Files.Shares.Models { diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListSharesResponse.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListSharesResponse.cs index d349514264673..76d43cdf1ce5e 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListSharesResponse.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ListSharesResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Storage.Files.Shares; namespace Azure.Storage.Files.Shares.Models { diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareFileRangeList.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareFileRangeList.cs index bda4e59a64b43..b12f5780a39e7 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareFileRangeList.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareFileRangeList.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Storage.Files.Shares; namespace Azure.Storage.Files.Shares.Models { diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareServiceProperties.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareServiceProperties.cs index 7e680c0f444fa..ee6f3b9841aa0 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareServiceProperties.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareServiceProperties.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Storage.Files.Shares; namespace Azure.Storage.Files.Shares.Models { diff --git a/sdk/storage/Azure.Storage.Queues/src/Generated/Internal/ChangeTrackingList.cs b/sdk/storage/Azure.Storage.Queues/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..02fd79071ad06 --- /dev/null +++ b/sdk/storage/Azure.Storage.Queues/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Storage.Queues +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/storage/Azure.Storage.Queues/src/Generated/Models/ListQueuesSegmentResponse.cs b/sdk/storage/Azure.Storage.Queues/src/Generated/Models/ListQueuesSegmentResponse.cs index 706964aa76413..a1f4482bf5365 100644 --- a/sdk/storage/Azure.Storage.Queues/src/Generated/Models/ListQueuesSegmentResponse.cs +++ b/sdk/storage/Azure.Storage.Queues/src/Generated/Models/ListQueuesSegmentResponse.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Storage.Queues; namespace Azure.Storage.Queues.Models { diff --git a/sdk/storage/Azure.Storage.Queues/src/Generated/Models/QueueServiceProperties.cs b/sdk/storage/Azure.Storage.Queues/src/Generated/Models/QueueServiceProperties.cs index 256ed60402486..11df1c1d529e1 100644 --- a/sdk/storage/Azure.Storage.Queues/src/Generated/Models/QueueServiceProperties.cs +++ b/sdk/storage/Azure.Storage.Queues/src/Generated/Models/QueueServiceProperties.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Storage.Queues; namespace Azure.Storage.Queues.Models { diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Internal/ChangeTrackingList.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..ad37836492b63 --- /dev/null +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.StorageCache +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/AmlFileSystemPropertiesHsm.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/AmlFileSystemPropertiesHsm.cs index 3b29dd6ce8aed..97e496afc9b98 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/AmlFileSystemPropertiesHsm.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/AmlFileSystemPropertiesHsm.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageCache; namespace Azure.ResourceManager.StorageCache.Models { diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/AmlFilesystemsListResult.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/AmlFilesystemsListResult.cs index 0d0128d3d5a9e..68d4db24813e2 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/AmlFilesystemsListResult.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/AmlFilesystemsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageCache; namespace Azure.ResourceManager.StorageCache.Models diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheHealth.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheHealth.cs index 936bf0e8515c5..864d8160d2573 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheHealth.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheHealth.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageCache; namespace Azure.ResourceManager.StorageCache.Models { diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheNetworkSettings.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheNetworkSettings.cs index 2fbf1afee19c6..5a0d3d85f2df5 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheNetworkSettings.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheNetworkSettings.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.StorageCache; namespace Azure.ResourceManager.StorageCache.Models { diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheRestriction.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheRestriction.cs index c693f6df7885b..1ae36c5a739b1 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheRestriction.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheRestriction.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageCache; namespace Azure.ResourceManager.StorageCache.Models { diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSecuritySettings.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSecuritySettings.cs index dc9ee4c563246..e6f0574ec7a06 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSecuritySettings.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSecuritySettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageCache; namespace Azure.ResourceManager.StorageCache.Models { diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSku.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSku.cs index 03bc6de670da2..347f2d9cb66ec 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSku.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSku.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageCache; namespace Azure.ResourceManager.StorageCache.Models { diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSkuLocationInfo.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSkuLocationInfo.cs index 878c66f527131..d98d9a974e643 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSkuLocationInfo.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSkuLocationInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.StorageCache; namespace Azure.ResourceManager.StorageCache.Models { diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSkusResult.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSkusResult.cs index 76907a64cc751..ae983f2de4fc9 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSkusResult.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheSkusResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageCache; namespace Azure.ResourceManager.StorageCache.Models { diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheUsageModelsResult.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheUsageModelsResult.cs index c7e8ca67c4d1a..3a0fb9ebd56ac 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheUsageModelsResult.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheUsageModelsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageCache; namespace Azure.ResourceManager.StorageCache.Models { diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheUsagesResult.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheUsagesResult.cs index de29fd841eec9..8f9adf20c6fe2 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheUsagesResult.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCacheUsagesResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageCache; namespace Azure.ResourceManager.StorageCache.Models { diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCachesResult.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCachesResult.cs index b9b89ffce84bc..9b94fea18bd87 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCachesResult.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageCachesResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageCache; namespace Azure.ResourceManager.StorageCache.Models diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageTargetsResult.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageTargetsResult.cs index 3c5c84e16c131..6bb28b2a10d9b 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageTargetsResult.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Generated/Models/StorageTargetsResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageCache; namespace Azure.ResourceManager.StorageCache.Models diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Internal/ChangeTrackingList.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..5f14b8a3503c0 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.StorageMover +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AgentList.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AgentList.cs index 63babb95cb4d9..a3747583e41a6 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AgentList.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AgentList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageMover; namespace Azure.ResourceManager.StorageMover.Models diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointList.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointList.cs index 38a4c80d6a3f3..82400539e40ec 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointList.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageMover; namespace Azure.ResourceManager.StorageMover.Models diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionList.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionList.cs index 7328db848022c..cdc87646c1765 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionList.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageMover; namespace Azure.ResourceManager.StorageMover.Models diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobRunList.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobRunList.cs index 8b36f6f3b098c..287bd52c938bd 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobRunList.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobRunList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageMover; namespace Azure.ResourceManager.StorageMover.Models diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/ProjectList.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/ProjectList.cs index 360ff1e2b8b57..c2b4f576388ac 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/ProjectList.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/ProjectList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageMover; namespace Azure.ResourceManager.StorageMover.Models diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverList.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverList.cs index ecf90e018d1b0..7dbdebc2f8f5b 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverList.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageMover; namespace Azure.ResourceManager.StorageMover.Models diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Internal/ChangeTrackingList.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..b803539cccf7b --- /dev/null +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.StoragePool +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolCreateOrUpdateContent.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolCreateOrUpdateContent.cs index cec628c547682..61c3c12db9364 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolCreateOrUpdateContent.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolCreateOrUpdateContent.cs @@ -10,6 +10,7 @@ using Azure.Core; using Azure.ResourceManager.Models; using Azure.ResourceManager.Resources.Models; +using Azure.ResourceManager.StoragePool; namespace Azure.ResourceManager.StoragePool.Models { diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolIscsiTargetCreateOrUpdateContent.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolIscsiTargetCreateOrUpdateContent.cs index d8ddd919fa1d2..c70fcf63555aa 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolIscsiTargetCreateOrUpdateContent.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolIscsiTargetCreateOrUpdateContent.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.StoragePool; namespace Azure.ResourceManager.StoragePool.Models { diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolIscsiTargetPatch.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolIscsiTargetPatch.cs index d8f0b6f134d89..5e72da5dc6489 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolIscsiTargetPatch.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolIscsiTargetPatch.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.StoragePool; namespace Azure.ResourceManager.StoragePool.Models { diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolPatch.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolPatch.cs index 0a775d8abbf8b..dccb1bbf24c1d 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolPatch.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolPatch.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Resources.Models; +using Azure.ResourceManager.StoragePool; namespace Azure.ResourceManager.StoragePool.Models { diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolZoneInfo.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolZoneInfo.cs index 6724337deee4e..376b31ba70dcc 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolZoneInfo.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolZoneInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StoragePool; namespace Azure.ResourceManager.StoragePool.Models { diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolZoneListResult.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolZoneListResult.cs index b60f4347e5ac5..a659454aaa88e 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolZoneListResult.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/DiskPoolZoneListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StoragePool; namespace Azure.ResourceManager.StoragePool.Models { diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/OutboundEndpointDependency.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/OutboundEndpointDependency.cs index 3fd1f89a58902..9390ce336aaaf 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/OutboundEndpointDependency.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/OutboundEndpointDependency.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StoragePool; namespace Azure.ResourceManager.StoragePool.Models { diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolOutboundEnvironment.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolOutboundEnvironment.cs index f1bb3a644debd..103c6f0665b09 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolOutboundEnvironment.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolOutboundEnvironment.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StoragePool; namespace Azure.ResourceManager.StoragePool.Models { diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuInfo.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuInfo.cs index b487edff4d2b3..1e53a61236882 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuInfo.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StoragePool; namespace Azure.ResourceManager.StoragePool.Models { diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuListResult.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuListResult.cs index e664de2888e06..9480a272d74be 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuListResult.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StoragePool; namespace Azure.ResourceManager.StoragePool.Models { diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuLocationInfo.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuLocationInfo.cs index 314bc5fb8a477..9613f44b6d432 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuLocationInfo.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuLocationInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.StoragePool; namespace Azure.ResourceManager.StoragePool.Models { diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictionInfo.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictionInfo.cs index 9fe5112ea8820..8e24678e9dd5b 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictionInfo.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictionInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.StoragePool; namespace Azure.ResourceManager.StoragePool.Models { diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictions.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictions.cs index 1decac68b3f06..54f051b7391ca 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictions.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuRestrictions.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StoragePool; namespace Azure.ResourceManager.StoragePool.Models { diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuZoneDetails.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuZoneDetails.cs index 5fd23fa372186..a9fdd062f7eac 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuZoneDetails.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/Models/StoragePoolSkuZoneDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StoragePool; namespace Azure.ResourceManager.StoragePool.Models { diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Internal/ChangeTrackingList.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..f77ef9ab8c244 --- /dev/null +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.StorageSync +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/CloudEndpointArray.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/CloudEndpointArray.cs index 8545584b8b5b8..a5a4a03942dc1 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/CloudEndpointArray.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/CloudEndpointArray.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/CloudTieringFilesNotTiering.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/CloudTieringFilesNotTiering.cs index 76de6fa38c844..b2ed4e94c098b 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/CloudTieringFilesNotTiering.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/CloudTieringFilesNotTiering.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models { diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/PostRestoreContent.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/PostRestoreContent.cs index a9b29662c215f..53b3f8af9f3dd 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/PostRestoreContent.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/PostRestoreContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models { diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/PreRestoreContent.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/PreRestoreContent.cs index 0c10e7161ead6..45ba4a8444ef7 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/PreRestoreContent.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/PreRestoreContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models { diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/RegisteredServerArray.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/RegisteredServerArray.cs index a827d0d8e26f2..264d44dbb0ef9 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/RegisteredServerArray.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/RegisteredServerArray.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/ServerEndpointArray.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/ServerEndpointArray.cs index fac116fcc2703..e37cf6da1793d 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/ServerEndpointArray.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/ServerEndpointArray.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/ServerEndpointRecallStatus.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/ServerEndpointRecallStatus.cs index 2eb8511072af6..8e9ba4276530d 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/ServerEndpointRecallStatus.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/ServerEndpointRecallStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models { diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/ServerEndpointSyncSessionStatus.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/ServerEndpointSyncSessionStatus.cs index 603e34edb824b..c3c92917f4db8 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/ServerEndpointSyncSessionStatus.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/ServerEndpointSyncSessionStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models { diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateEndpointConnectionListResult.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateEndpointConnectionListResult.cs index 464cda35bdbd7..b2c6add8b1450 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateEndpointConnectionListResult.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateLinkResource.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateLinkResource.cs index e8837d4d512c6..45b816cbe5745 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateLinkResource.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateLinkResource.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models { diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateLinkResourceListResult.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateLinkResourceListResult.cs index 8a4532b89a743..ddf00986c94e0 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateLinkResourceListResult.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncPrivateLinkResourceListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models { diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncServiceArray.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncServiceArray.cs index a0e754623e6f0..d640df5d29b3c 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncServiceArray.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/StorageSyncServiceArray.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/SyncGroupArray.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/SyncGroupArray.cs index f97a68b3be7fc..1b1fc41bc9d0f 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/SyncGroupArray.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/SyncGroupArray.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/TriggerChangeDetectionContent.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/TriggerChangeDetectionContent.cs index f06f2a2034928..a16ed30d9a091 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/TriggerChangeDetectionContent.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/TriggerChangeDetectionContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models { diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/WorkflowArray.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/WorkflowArray.cs index 6927e431d51f8..a00b2cde63f96 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/WorkflowArray.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/Models/WorkflowArray.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StorageSync; namespace Azure.ResourceManager.StorageSync.Models diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Internal/ChangeTrackingList.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..5dce9208071c6 --- /dev/null +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.StreamAnalytics +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/BlobOutputDataSource.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/BlobOutputDataSource.cs index 842d60b784bf7..70db03fc16d41 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/BlobOutputDataSource.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/BlobOutputDataSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/BlobReferenceInputDataSource.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/BlobReferenceInputDataSource.cs index 5796d202b7c17..2231ef7c77106 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/BlobReferenceInputDataSource.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/BlobReferenceInputDataSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/BlobStreamInputDataSource.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/BlobStreamInputDataSource.cs index 1e5138d03ee62..c0b02d9413c24 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/BlobStreamInputDataSource.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/BlobStreamInputDataSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EMachineLearningStudioFunctionBinding.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EMachineLearningStudioFunctionBinding.cs index eaeea07777c0a..daae836c55ecc 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EMachineLearningStudioFunctionBinding.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EMachineLearningStudioFunctionBinding.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EventGridStreamInputDataSource.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EventGridStreamInputDataSource.cs index 114bfdfca8e19..32b313e74ccb6 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EventGridStreamInputDataSource.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EventGridStreamInputDataSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EventHubOutputDataSource.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EventHubOutputDataSource.cs index 7e55ce185c7c1..b8627f867bea0 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EventHubOutputDataSource.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EventHubOutputDataSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EventHubV2OutputDataSource.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EventHubV2OutputDataSource.cs index 943103ea57f64..daec0c257e8e2 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EventHubV2OutputDataSource.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/EventHubV2OutputDataSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/MachineLearningServiceFunctionBinding.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/MachineLearningServiceFunctionBinding.cs index 7704a6ecb11a0..2b931dc9e46a6 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/MachineLearningServiceFunctionBinding.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/MachineLearningServiceFunctionBinding.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/MachineLearningStudioInputs.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/MachineLearningStudioInputs.cs index bc8f45cf14d3f..f5485ce0a07b4 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/MachineLearningStudioInputs.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/MachineLearningStudioInputs.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/ServiceBusQueueOutputDataSource.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/ServiceBusQueueOutputDataSource.cs index da95b795707d1..95549f050c947 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/ServiceBusQueueOutputDataSource.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/ServiceBusQueueOutputDataSource.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/ServiceBusTopicOutputDataSource.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/ServiceBusTopicOutputDataSource.cs index 929161b9f6e04..e8ff9255d7eb7 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/ServiceBusTopicOutputDataSource.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/ServiceBusTopicOutputDataSource.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsClusterJobListResult.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsClusterJobListResult.cs index a2ff910c6535f..d88cf8f1728ab 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsClusterJobListResult.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsClusterJobListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsClusterListResult.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsClusterListResult.cs index dfa5f2585bb59..7b97b10c8322e 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsClusterListResult.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsClusterListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsCompileQuery.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsCompileQuery.cs index eee5627eda410..745049090bc4f 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsCompileQuery.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsCompileQuery.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsError.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsError.cs index 4521f4cfd29fd..294f3d4851c4c 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsError.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateEndpointListResult.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateEndpointListResult.cs index b423166498437..a31a95e11db48 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateEndpointListResult.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateEndpointListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateEndpointProperties.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateEndpointProperties.cs index e1afe5d59b2c1..9f18da635d7cf 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateEndpointProperties.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateEndpointProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateLinkServiceConnection.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateLinkServiceConnection.cs index 51f84c9187534..c35cc90445039 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateLinkServiceConnection.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsPrivateLinkServiceConnection.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsQueryCompilationResult.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsQueryCompilationResult.cs index 2578950244dbc..961acbef3b9b8 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsQueryCompilationResult.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsQueryCompilationResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsSampleInputResult.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsSampleInputResult.cs index cb45765fd7754..d6d98fafb6686 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsSampleInputResult.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsSampleInputResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsSubscriptionQuotasListResult.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsSubscriptionQuotasListResult.cs index a7131e9e70b39..ca6f9e09e4c04 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsSubscriptionQuotasListResult.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamAnalyticsSubscriptionQuotasListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobDiagnostics.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobDiagnostics.cs index 45d1c8b344a2a..d1004451e1c06 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobDiagnostics.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobDiagnostics.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobFunctionListResult.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobFunctionListResult.cs index 5f29a402fc4ac..d83009ec45760 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobFunctionListResult.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobFunctionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobFunctionProperties.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobFunctionProperties.cs index c111a5ee1f976..85a438a163409 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobFunctionProperties.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobFunctionProperties.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobInputListResult.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobInputListResult.cs index 6583e954f4b59..9c618d466ac55 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobInputListResult.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobInputListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobListResult.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobListResult.cs index 683fb96e519d0..45c0bce82daef 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobListResult.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobOutputListResult.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobOutputListResult.cs index 6c4e9c9158a5d..099d02b6d1aa4 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobOutputListResult.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/StreamingJobOutputListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/TableOutputDataSource.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/TableOutputDataSource.cs index 7d95fdb507c82..2a04ac364e07a 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/TableOutputDataSource.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/Models/TableOutputDataSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.StreamAnalytics; namespace Azure.ResourceManager.StreamAnalytics.Models { diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Internal/ChangeTrackingList.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..74200f321490d --- /dev/null +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Subscription +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/BillingAccountPolicyProperties.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/BillingAccountPolicyProperties.cs index 5c551a55c98b8..003ae4c2514ac 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/BillingAccountPolicyProperties.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/BillingAccountPolicyProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Subscription; namespace Azure.ResourceManager.Subscription.Models { diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/SubscriptionAliasListResult.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/SubscriptionAliasListResult.cs index b5a8c300326ff..3872921c35d3b 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/SubscriptionAliasListResult.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/SubscriptionAliasListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Subscription; namespace Azure.ResourceManager.Subscription.Models diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPoliciesResult.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPoliciesResult.cs index ba172676f17c4..44f79ffdcadad 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPoliciesResult.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPoliciesResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Subscription; namespace Azure.ResourceManager.Subscription.Models diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPolicyCreateOrUpdateContent.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPolicyCreateOrUpdateContent.cs index b3b37b780c5a6..e95154485b780 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPolicyCreateOrUpdateContent.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPolicyCreateOrUpdateContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Subscription; namespace Azure.ResourceManager.Subscription.Models { diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPolicyProperties.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPolicyProperties.cs index 787c05308b042..264ed0e0f89dc 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPolicyProperties.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Models/TenantPolicyProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Subscription; namespace Azure.ResourceManager.Subscription.Models { diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Internal/ChangeTrackingList.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..42ea44bb37dc9 --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Support +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ChatTranscriptsListResult.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ChatTranscriptsListResult.cs index c35bf2d7b6edd..b045eef3cf9ad 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ChatTranscriptsListResult.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ChatTranscriptsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Support; namespace Azure.ResourceManager.Support.Models diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/CommunicationsListResult.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/CommunicationsListResult.cs index 01ea145a83605..c4b00c3804cee 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/CommunicationsListResult.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/CommunicationsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Support; namespace Azure.ResourceManager.Support.Models diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/FilesListResult.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/FilesListResult.cs index 4dc3ee71dcfe9..266d7174a528b 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/FilesListResult.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/FilesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Support; namespace Azure.ResourceManager.Support.Models diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationsListResult.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationsListResult.cs index 4ca3d507799a1..c3b8bb435f7a8 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationsListResult.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ProblemClassificationsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Support; namespace Azure.ResourceManager.Support.Models diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/QuotaTicketDetails.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/QuotaTicketDetails.cs index da8a9d8b65aa6..2aac098304d26 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/QuotaTicketDetails.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/QuotaTicketDetails.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Support; namespace Azure.ResourceManager.Support.Models { diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ServicesListResult.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ServicesListResult.cs index 8e1566a542b93..1b8cebd56054e 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ServicesListResult.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/ServicesListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Support; namespace Azure.ResourceManager.Support.Models diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfile.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfile.cs index aa39e979d8332..1aa860849201d 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfile.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfile.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Support; namespace Azure.ResourceManager.Support.Models { diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfileContent.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfileContent.cs index a5bc65ba6e2c9..1613fd493d9d4 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfileContent.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportContactProfileContent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Support; namespace Azure.ResourceManager.Support.Models { diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketsListResult.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketsListResult.cs index 31f1084eaa092..d07a7127e5989 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketsListResult.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/SupportTicketsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Support; namespace Azure.ResourceManager.Support.Models diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/UpdateSupportTicket.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/UpdateSupportTicket.cs index 675ad2a421c70..5d66dca79da3b 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/UpdateSupportTicket.cs +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/Models/UpdateSupportTicket.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Support; namespace Azure.ResourceManager.Support.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Internal/ChangeTrackingList.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..1d5f9da1bd14b --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Analytics.Synapse.Artifacts +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Activity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Activity.cs index 90d40505cdb8f..cae26bf42d322 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Activity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Activity.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfo.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfo.cs index de404be8386f7..98f1e45e56a92 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfo.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfoListResult.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfoListResult.Serialization.cs index 6f76107db1112..f2ed0ec433c46 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfoListResult.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfoListResult.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfoListResult.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfoListResult.cs index 6400a2b69ea04..97172cfcb4e57 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfoListResult.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfoListResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CloudError.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CloudError.Serialization.cs index ab001564a03f8..aa5c33d490c0a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CloudError.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CloudError.Serialization.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CloudError.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CloudError.cs index 2c2d558c549d8..bbb20b6397951 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CloudError.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CloudError.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyActivity.cs index 0ccff63c1d169..b4b7a904a7173 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyActivity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomActivityReferenceObject.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomActivityReferenceObject.cs index 2ed2cff02d20f..a455fad6c5d0f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomActivityReferenceObject.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomActivityReferenceObject.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DWCopyCommandSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DWCopyCommandSettings.cs index d1500b83418f9..4dee06f82a9f0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DWCopyCommandSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DWCopyCommandSettings.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlow.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlow.cs index 79f3faa0863b9..48ce587d303b6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlow.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlow.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandPayload.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandPayload.cs index fc69082c60be7..3011b80528105 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandPayload.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandPayload.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackage.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackage.cs index f170171976de8..360fd80513c3e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackage.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackage.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackageDebugSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackageDebugSettings.cs index 0768615533109..d10fdac40d76e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackageDebugSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackageDebugSettings.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugStatisticsRequest.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugStatisticsRequest.cs index d159009988db5..3c0cfb6c6635f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugStatisticsRequest.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugStatisticsRequest.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksNotebookActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksNotebookActivity.cs index 8b1464952db57..57e392b0be7f2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksNotebookActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksNotebookActivity.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkJarActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkJarActivity.cs index c2e31bcb1cc87..680e4ecf19ac8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkJarActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkJarActivity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkPythonActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkPythonActivity.cs index 77ac6ef1966dc..e79be59c37d1a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkPythonActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkPythonActivity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Dataset.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Dataset.cs index bdbb696976000..f9d3d8124a711 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Dataset.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Dataset.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EditTablesRequest.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EditTablesRequest.cs index 6d1d30334e280..24c161fa11d5d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EditTablesRequest.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EditTablesRequest.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorResponse.Serialization.cs index a94f25132a95e..e8bd9306d2482 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorResponse.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorResponse.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorResponse.cs index 6fd69b7a04b66..1b82c7b54520d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorResponse.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorResponse.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Flowlet.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Flowlet.cs index 20a7f2860aad4..4eed84b2c93ef 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Flowlet.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Flowlet.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GetMetadataActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GetMetadataActivity.cs index b46f858b26cec..7d9a9f2cb2944 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GetMetadataActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GetMetadataActivity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightHiveActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightHiveActivity.cs index a6ca8015a4814..7b3a308fd483c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightHiveActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightHiveActivity.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightMapReduceActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightMapReduceActivity.cs index 8a26b6ed239e1..77d9e4b0cad5f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightMapReduceActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightMapReduceActivity.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightOnDemandLinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightOnDemandLinkedService.cs index 63dcb746d5181..3bd034b16eeba 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightOnDemandLinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightOnDemandLinkedService.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightPigActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightPigActivity.cs index 393300b9f46ce..140e6640d2967 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightPigActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightPigActivity.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightSparkActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightSparkActivity.cs index 80397de97f853..d8bff793f0b44 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightSparkActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightSparkActivity.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightStreamingActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightStreamingActivity.cs index 014fb564c2e6b..65f519a8173bf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightStreamingActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightStreamingActivity.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IfConditionActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IfConditionActivity.cs index b2ec1d001ebd2..0d23da06962e0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IfConditionActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IfConditionActivity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeSsisProperties.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeSsisProperties.cs index cfefa3406737e..1756213682ee5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeSsisProperties.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeSsisProperties.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeVNetProperties.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeVNetProperties.cs index 4dec219e37777..44d3df1471d72 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeVNetProperties.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeVNetProperties.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptsResourceCollectionResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptsResourceCollectionResponse.Serialization.cs index 8de094289d67d..6dd9b5097a4c0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptsResourceCollectionResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptsResourceCollectionResponse.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptsResourceCollectionResponse.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptsResourceCollectionResponse.cs index a17beeaecc11c..19190415fd4e1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptsResourceCollectionResponse.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptsResourceCollectionResponse.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionQueryTableStatus.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionQueryTableStatus.Serialization.cs index f332a6260bc5a..71e73f6b3d06b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionQueryTableStatus.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionQueryTableStatus.Serialization.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionQueryTableStatus.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionQueryTableStatus.cs index 9ec292f836230..1c1ac4b2b7f5b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionQueryTableStatus.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionQueryTableStatus.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableListResponse.Serialization.cs index ce94d502c6ab2..2d017f0e39b21 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableListResponse.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableListResponse.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableListResponse.cs index abab41e3256aa..898417fea9c6f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableListResponse.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableListResponse.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.cs index 890eaa0ecfad5..45c844f8052ae 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedVirtualNetworkSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedVirtualNetworkSettings.cs index 5a517b89b3894..d6c56c9787fdc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedVirtualNetworkSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedVirtualNetworkSettings.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MappingDataFlow.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MappingDataFlow.cs index 0d2d4b53161f8..36f3707aa115f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MappingDataFlow.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MappingDataFlow.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MultiplePipelineTrigger.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MultiplePipelineTrigger.cs index 240a6de294011..5f06c1e1e2b52 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MultiplePipelineTrigger.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MultiplePipelineTrigger.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCell.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCell.cs index 44dbe493f30bb..27e6c539283c1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCell.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCell.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OperationResult.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OperationResult.Serialization.cs index edbaca492a099..dde78c3be2a40 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OperationResult.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OperationResult.Serialization.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OperationResult.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OperationResult.cs index 6968f0c591200..900726dee7dc5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OperationResult.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OperationResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineResource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineResource.cs index 7ddb5c63b1c2f..6d77b55007926 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineResource.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineResource.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryDataFlowDebugSessionsResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryDataFlowDebugSessionsResponse.Serialization.cs index 1dd89a87f08e3..fd8c926f23006 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryDataFlowDebugSessionsResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryDataFlowDebugSessionsResponse.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryDataFlowDebugSessionsResponse.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryDataFlowDebugSessionsResponse.cs index 98b02c6d9a514..f925f999df65f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryDataFlowDebugSessionsResponse.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryDataFlowDebugSessionsResponse.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RecurrenceSchedule.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RecurrenceSchedule.cs index 19b5515b6b8f0..5efa594648f90 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RecurrenceSchedule.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RecurrenceSchedule.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunFilterParameters.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunFilterParameters.cs index 2ef073bad0475..adb81ac42965b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunFilterParameters.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunFilterParameters.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookError.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookError.Serialization.cs index 56f877bd49a93..ef9fcc68504a5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookError.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookError.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookError.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookError.cs index bc63fe42ad2b7..a8ce38fd871fa 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookError.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookError.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSparkSessionOptions.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSparkSessionOptions.cs index 9a6f04e203677..4d412c3c54cde 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSparkSessionOptions.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSparkSessionOptions.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.cs index 0799ef1cd6546..6671656299bb3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityScriptBlock.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityScriptBlock.cs index edd2083c9dcfe..9ad03a458165c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityScriptBlock.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityScriptBlock.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJob.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJob.Serialization.cs index fc379b2e085fe..b8a81e593458d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJob.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJob.Serialization.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJob.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJob.cs index 40b5f1d9ff742..bb986321b0bd1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJob.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJob.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfiguration.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfiguration.cs index fa0451962f141..193ae131e2f0c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfiguration.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfiguration.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobProperties.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobProperties.cs index 858f588fd9cd7..7fc5a98677817 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobProperties.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobProperties.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkRequest.Serialization.cs index f39a1bbc4dc44..b82f4f03c4760 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkRequest.Serialization.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkRequest.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkRequest.cs index b67497992a9fc..5c60c34a2ecfa 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkRequest.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkRequest.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolInfoListResult.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolInfoListResult.Serialization.cs index 3aee0b72196e0..2eec690d973f5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolInfoListResult.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolInfoListResult.Serialization.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolInfoListResult.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolInfoListResult.cs index 757bc381e91b9..fa01c648b8d11 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolInfoListResult.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolInfoListResult.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisPackageLocation.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisPackageLocation.cs index ac6538589bd07..81756bcee2f2a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisPackageLocation.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisPackageLocation.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StartDataFlowDebugSessionRequest.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StartDataFlowDebugSessionRequest.cs index 5b12158d89086..67845de55787d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StartDataFlowDebugSessionRequest.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StartDataFlowDebugSessionRequest.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchActivity.cs index 9501f67102c9a..0bda8921b29bb 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchActivity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchCase.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchCase.cs index e11a5bc60eae5..dcaa3e2b0fa90 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchCase.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchCase.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseSparkJobDefinitionActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseSparkJobDefinitionActivity.cs index 6711d5d4afe91..6c35ecdf9cede 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseSparkJobDefinitionActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseSparkJobDefinitionActivity.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Trigger.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Trigger.cs index 3a976eb63d888..c7958cfd676ad 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Trigger.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Trigger.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TumblingWindowTrigger.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TumblingWindowTrigger.cs index d3025f47c6090..85c116b52454a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TumblingWindowTrigger.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TumblingWindowTrigger.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivity.cs index dca1069ffd34c..81cd30fac4414 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Artifacts; namespace Azure.Analytics.Synapse.Artifacts.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Workspace.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Workspace.cs index 237b8400a9ccf..2bf6b7214ea2f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Workspace.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Workspace.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Internal/ChangeTrackingList.cs b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..6aee62ca0b056 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Analytics.Synapse.ManagedPrivateEndpoints +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointListResponse.Serialization.cs index 610d872195709..a9204e2759be8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointListResponse.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Analytics.Synapse.ManagedPrivateEndpoints; namespace Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointListResponse.cs b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointListResponse.cs index 2555e14bceffa..2a65e6b9dec20 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointListResponse.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointListResponse.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.ManagedPrivateEndpoints; namespace Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointProperties.cs b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointProperties.cs index 5a5b9985bb68c..5f9837236f7f6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointProperties.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointProperties.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.ManagedPrivateEndpoints; namespace Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Internal/ChangeTrackingList.cs b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..1ad48e1bcce22 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Analytics.Synapse.Monitoring +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJob.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJob.Serialization.cs index 36899e368a073..d3d2f9060a711 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJob.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJob.Serialization.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using System.Text.Json; +using Azure.Analytics.Synapse.Monitoring; using Azure.Core; namespace Azure.Analytics.Synapse.Monitoring.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJob.cs b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJob.cs index feab3e64242f3..984c4057ba4bc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJob.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJob.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Monitoring; namespace Azure.Analytics.Synapse.Monitoring.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJobListViewResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJobListViewResponse.Serialization.cs index 8bcfd10d82090..03a463c6a915d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJobListViewResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJobListViewResponse.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Analytics.Synapse.Monitoring; namespace Azure.Analytics.Synapse.Monitoring.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJobListViewResponse.cs b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJobListViewResponse.cs index ad190e52dbce4..6d0c3c8d30040 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJobListViewResponse.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJobListViewResponse.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Monitoring; namespace Azure.Analytics.Synapse.Monitoring.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Internal/ChangeTrackingList.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..e47727bb19f18 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Analytics.Synapse.Spark +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJob.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJob.Serialization.cs index 7e26f8f3d3cee..2b6f9fa0362e0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJob.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJob.Serialization.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.Text.Json; +using Azure.Analytics.Synapse.Spark; using Azure.Core; namespace Azure.Analytics.Synapse.Spark.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJob.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJob.cs index 793c9c84affb1..075d3f959d7a0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJob.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJob.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Spark; using Azure.Core; namespace Azure.Analytics.Synapse.Spark.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobCollection.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobCollection.Serialization.cs index b868fec0bef8d..841726549a0e7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobCollection.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobCollection.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Analytics.Synapse.Spark; namespace Azure.Analytics.Synapse.Spark.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobCollection.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobCollection.cs index 98c8224c23d0a..51a2f5059637c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobCollection.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobCollection.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Spark; namespace Azure.Analytics.Synapse.Spark.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobOptions.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobOptions.cs index fdfbe97e5f236..9b0170cf540de 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobOptions.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobOptions.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.Analytics.Synapse.Spark; using Azure.Core; namespace Azure.Analytics.Synapse.Spark.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkRequest.Serialization.cs index 870907488da94..d619dc93cd8aa 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkRequest.Serialization.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.Text.Json; +using Azure.Analytics.Synapse.Spark; using Azure.Core; namespace Azure.Analytics.Synapse.Spark.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkRequest.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkRequest.cs index ec4d349de61f0..99acf95c6b1f3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkRequest.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkRequest.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Spark; using Azure.Core; namespace Azure.Analytics.Synapse.Spark.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSession.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSession.Serialization.cs index 34217bd6ae948..7b68100a7f338 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSession.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSession.Serialization.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.Text.Json; +using Azure.Analytics.Synapse.Spark; using Azure.Core; namespace Azure.Analytics.Synapse.Spark.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSession.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSession.cs index de1ddcb2ce60b..7442f09b971a7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSession.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSession.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.Analytics.Synapse.Spark; using Azure.Core; namespace Azure.Analytics.Synapse.Spark.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionCollection.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionCollection.Serialization.cs index 31cac9de0dcd3..a86e3fe4cf16d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionCollection.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionCollection.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Analytics.Synapse.Spark; namespace Azure.Analytics.Synapse.Spark.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionCollection.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionCollection.cs index c8c446c58fcbe..ba67a0730dad8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionCollection.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionCollection.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Spark; namespace Azure.Analytics.Synapse.Spark.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionOptions.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionOptions.cs index 8af40d5592c6a..6ab321a34bca9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionOptions.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionOptions.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.Analytics.Synapse.Spark; using Azure.Core; namespace Azure.Analytics.Synapse.Spark.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCollection.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCollection.Serialization.cs index 568d9b7eb1005..d7d00e32747e2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCollection.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCollection.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Analytics.Synapse.Spark; namespace Azure.Analytics.Synapse.Spark.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCollection.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCollection.cs index 884c65069735d..39e33bf116d62 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCollection.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCollection.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Spark; namespace Azure.Analytics.Synapse.Spark.Models { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOutput.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOutput.Serialization.cs index 3c7e3610592ed..6fc8196978d19 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOutput.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOutput.Serialization.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.Text.Json; +using Azure.Analytics.Synapse.Spark; using Azure.Core; namespace Azure.Analytics.Synapse.Spark.Models diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOutput.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOutput.cs index b6fdf42c1abc1..9b949c85d45a8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOutput.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOutput.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Analytics.Synapse.Spark; namespace Azure.Analytics.Synapse.Spark.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Internal/ChangeTrackingList.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..49d569eaa6172 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Synapse +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KeyInfoListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KeyInfoListResult.cs index 4259462c016a5..693bc65c14975 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KeyInfoListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KeyInfoListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolListResult.cs index b45c5cd47d71c..c3f6c37b5921c 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolSkuDescription.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolSkuDescription.cs index 87d7bd7d0a6b8..9c8e97daa158f 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolSkuDescription.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolSkuDescription.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolSkuDescriptionListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolSkuDescriptionListResult.cs index e29003878c9a7..26a1f8c672736 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolSkuDescriptionListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolSkuDescriptionListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolSkuLocationInfoItem.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolSkuLocationInfoItem.cs index d7af2da0f19e1..236bf80e74cba 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolSkuLocationInfoItem.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/KustoPoolSkuLocationInfoItem.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolColumnListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolColumnListResult.cs index fc6f6a4f73912..c9e95c4891597 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolColumnListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolColumnListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolInfoListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolInfoListResult.cs index ea44ee7bc5394..ecf29d7d8ac42 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolInfoListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolInfoListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolSchemaListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolSchemaListResult.cs index c401394b31ba0..c9415c6d5394f 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolSchemaListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolSchemaListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolTableListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolTableListResult.cs index 486789e4686de..172e443ac6e0d 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolTableListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolTableListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolVulnerabilityAssessmentListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolVulnerabilityAssessmentListResult.cs index f61a85f3bfe9a..bb7261c7a4f9f 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolVulnerabilityAssessmentListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SqlPoolVulnerabilityAssessmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseAadOnlyAuthenticationListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseAadOnlyAuthenticationListResult.cs index 3248b93d555d9..ad82d5b971a73 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseAadOnlyAuthenticationListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseAadOnlyAuthenticationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseAttachedDatabaseConfigurationListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseAttachedDatabaseConfigurationListResult.cs index a0341b71bd59b..44d35848c203a 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseAttachedDatabaseConfigurationListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseAttachedDatabaseConfigurationListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseBigDataPoolInfoListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseBigDataPoolInfoListResult.cs index 233869cc69012..1044537285597 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseBigDataPoolInfoListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseBigDataPoolInfoListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseClusterPrincipalAssignmentListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseClusterPrincipalAssignmentListResult.cs index 997dca2755054..59f451964d88a 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseClusterPrincipalAssignmentListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseClusterPrincipalAssignmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataConnectionListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataConnectionListResult.cs index a56ce81fc42de..6a8427c9160b4 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataConnectionListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataConnectionValidationListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataConnectionValidationListResult.cs index 59412404774b1..09c90e0019ec1 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataConnectionValidationListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataConnectionValidationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingRuleListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingRuleListResult.cs index 527afdcbfbeb4..ae9b1279ae8d1 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingRuleListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataMaskingRuleListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataSourceResourceSkuListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataSourceResourceSkuListResult.cs index 9f0a6c8787804..8358279e2898d 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataSourceResourceSkuListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDataSourceResourceSkuListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDatabaseListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDatabaseListResult.cs index e407f4b2be805..94e9a3a3bb502 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDatabaseListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDatabaseListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDatabasePrincipalAssignmentListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDatabasePrincipalAssignmentListResult.cs index 45fedbcb434be..ececb6c4a5c5b 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDatabasePrincipalAssignmentListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDatabasePrincipalAssignmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDedicatedSqlMinimalTlsSettingListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDedicatedSqlMinimalTlsSettingListResult.cs index 8e0356a8650ec..b2080252160cd 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDedicatedSqlMinimalTlsSettingListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseDedicatedSqlMinimalTlsSettingListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEncryptionProtectorListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEncryptionProtectorListResult.cs index fb27976cf7494..f30b26455623c 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEncryptionProtectorListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEncryptionProtectorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseExtendedServerBlobAuditingPolicyListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseExtendedServerBlobAuditingPolicyListResult.cs index 15ce2178bbd73..d1acf67981130 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseExtendedServerBlobAuditingPolicyListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseExtendedServerBlobAuditingPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseExtendedSqlPoolBlobAuditingPolicyListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseExtendedSqlPoolBlobAuditingPolicyListResult.cs index 507d4f03567cd..4a7b3530c4d54 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseExtendedSqlPoolBlobAuditingPolicyListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseExtendedSqlPoolBlobAuditingPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseFollowerDatabaseListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseFollowerDatabaseListResult.cs index 796694fc66217..4cb636e087b6c 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseFollowerDatabaseListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseFollowerDatabaseListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGeoBackupPolicyListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGeoBackupPolicyListResult.cs index ff2e996b3ddaa..3aaaf6fbe9e9b 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGeoBackupPolicyListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseGeoBackupPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoListResult.cs index 7002bfec84d7d..9514d86f8a105 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeMonitoringResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeMonitoringResult.cs index 4ff3eed71e6bb..0018e5690530a 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeMonitoringResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeMonitoringResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.cs index ed57d4b169781..ee6d993643ed7 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointListResult.cs index 1eee72c8fe0a5..3bf635c0dd28e 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeOutboundNetworkDependenciesEndpoint.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeOutboundNetworkDependenciesEndpoint.cs index 2f08b91e0ad56..9a4ebc31ca27e 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeOutboundNetworkDependenciesEndpoint.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeOutboundNetworkDependenciesEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeSsisProperties.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeSsisProperties.cs index bc2558cffe9ae..7657dd44ed7e0 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeSsisProperties.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeSsisProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeVnetProperties.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeVnetProperties.cs index 7b22202a4a3f6..be618f0b9531d 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeVnetProperties.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeVnetProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseKustoPoolPrivateLinkData.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseKustoPoolPrivateLinkData.cs index c0b52999b9535..648a6d4b92623 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseKustoPoolPrivateLinkData.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseKustoPoolPrivateLinkData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseKustoPoolPrivateLinkList.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseKustoPoolPrivateLinkList.cs index fca72202c1d88..2a88bc5c41e70 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseKustoPoolPrivateLinkList.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseKustoPoolPrivateLinkList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseLanguageExtensionsList.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseLanguageExtensionsList.cs index bac41f2511b93..df02d2e836602 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseLanguageExtensionsList.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseLanguageExtensionsList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeError.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeError.cs index 78cb00f3af656..e1054dc1fdb7b 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeError.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeError.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeNode.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeNode.cs index 874a7144c834d..aa2319d44bda1 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeNode.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeNode.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeOperationResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeOperationResult.cs index a3b505928b54a..4da6eabc21acf 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeOperationResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeOperationResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeStatus.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeStatus.cs index 7217ce88a6294..e80894ca57be4 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeStatus.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeStatus.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedVirtualNetworkSettings.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedVirtualNetworkSettings.cs index 4812cf54c95e3..51f60053df993 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedVirtualNetworkSettings.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedVirtualNetworkSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateEndpointConnectionForPrivateLinkHubListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateEndpointConnectionForPrivateLinkHubListResult.cs index 495d2fda28857..8a90f232f9428 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateEndpointConnectionForPrivateLinkHubListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateEndpointConnectionForPrivateLinkHubListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateEndpointConnectionListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateEndpointConnectionListResult.cs index c6c69367c4fdd..77da86bacfaf0 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateEndpointConnectionListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateEndpointConnectionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkHubListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkHubListResult.cs index e7c3d0ec36dcd..f90c57f1cfadc 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkHubListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkHubListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkResourceListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkResourceListResult.cs index f83b108eb4be3..93e91cf18af70 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkResourceListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkResourceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkResourceProperties.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkResourceProperties.cs index c0605fc98ebe8..51a1db5705658 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkResourceProperties.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapsePrivateLinkResourceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecommendedSensitivityLabelUpdateOperationListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecommendedSensitivityLabelUpdateOperationListResult.cs index a358a25f6ca01..97c4dd04712e2 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecommendedSensitivityLabelUpdateOperationListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecommendedSensitivityLabelUpdateOperationListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecoverableSqlPoolListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecoverableSqlPoolListResult.cs index e5846f7268c8b..6019bb9d84ad9 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecoverableSqlPoolListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRecoverableSqlPoolListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseReplicationLinkListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseReplicationLinkListResult.cs index 4247a136d7cd5..9a53115bb9900 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseReplicationLinkListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseReplicationLinkListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRestorePointListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRestorePointListResult.cs index 8c9906f86c9c6..153cc4c795f78 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRestorePointListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseRestorePointListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.cs index 6341c8d5dbf84..52aaa35c18fc0 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelListResult.cs index 33de034053632..cee3fe97e5487 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelUpdateListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelUpdateListResult.cs index eaa58728c195a..ce72c01706387 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelUpdateListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSensitivityLabelUpdateListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerBlobAuditingPolicyListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerBlobAuditingPolicyListResult.cs index 36d06939676c4..8dbeb2a4bf5c5 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerBlobAuditingPolicyListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerBlobAuditingPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerSecurityAlertPolicyListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerSecurityAlertPolicyListResult.cs index a9441abbd0837..b07c990327f4f 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerSecurityAlertPolicyListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerSecurityAlertPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerVulnerabilityAssessmentListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerVulnerabilityAssessmentListResult.cs index a14264a46c28c..826fc13aedf75 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerVulnerabilityAssessmentListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseServerVulnerabilityAssessmentListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolBlobAuditingPolicyListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolBlobAuditingPolicyListResult.cs index b983af0676f9a..77bd6edb7d4da 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolBlobAuditingPolicyListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolBlobAuditingPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolSecurityAlertPolicyListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolSecurityAlertPolicyListResult.cs index 505031d77c02d..baf30a4027325 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolSecurityAlertPolicyListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSqlPoolSecurityAlertPolicyListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisEnvironment.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisEnvironment.cs index d0de91ffed641..cb2abc1c4bd2b 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisEnvironment.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisEnvironment.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisObjectMetadataListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisObjectMetadataListResult.cs index 4a31a2eb6c5f3..714b1ec155b30 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisObjectMetadataListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisObjectMetadataListResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisPackage.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisPackage.cs index 4ad653c097347..f75a6654543c3 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisPackage.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisPackage.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisProject.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisProject.cs index 8f16ff9ffc432..f16296f441a5f 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisProject.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSsisProject.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTableLevelSharingProperties.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTableLevelSharingProperties.cs index f47b80978d716..d095a8c3a3e13 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTableLevelSharingProperties.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTableLevelSharingProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTransparentDataEncryptionListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTransparentDataEncryptionListResult.cs index 0d972e0c3dc75..021b448e49dfd 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTransparentDataEncryptionListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseTransparentDataEncryptionListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentRecurringScansProperties.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentRecurringScansProperties.cs index 6209fc65da81d..867955778dc4f 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentRecurringScansProperties.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentRecurringScansProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentScanRecordListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentScanRecordListResult.cs index 0dc79f96868c6..fe66d4131c021 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentScanRecordListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseVulnerabilityAssessmentScanRecordListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkloadClassifierListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkloadClassifierListResult.cs index ba2192872449d..38d5ce4d7c2f0 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkloadClassifierListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkloadClassifierListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkloadGroupListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkloadGroupListResult.cs index ece991d20ec0a..0ed0e3fc9e15a 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkloadGroupListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkloadGroupListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceListResult.cs index 514ad872ae195..425e9abc1f465 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseWorkspaceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Synapse; namespace Azure.ResourceManager.Synapse.Models diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Internal/ChangeTrackingList.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..78a57b69b21e6 --- /dev/null +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Data.Tables +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableEntityQueryResponse.Serialization.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableEntityQueryResponse.Serialization.cs index 66ffbf5f32026..30320adc5b8cb 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableEntityQueryResponse.Serialization.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableEntityQueryResponse.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Data.Tables; namespace Azure.Data.Tables.Models { diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableEntityQueryResponse.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableEntityQueryResponse.cs index 006a71e2c87d8..f30786fd6f0a0 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableEntityQueryResponse.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableEntityQueryResponse.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Data.Tables; namespace Azure.Data.Tables.Models { diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableQueryResponse.Serialization.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableQueryResponse.Serialization.cs index ff157f3171c37..ea0e2465930eb 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableQueryResponse.Serialization.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableQueryResponse.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.Data.Tables; namespace Azure.Data.Tables.Models { diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableQueryResponse.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableQueryResponse.cs index 397c3b83a2cab..7bfa3e8b976a4 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableQueryResponse.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableQueryResponse.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Data.Tables; namespace Azure.Data.Tables.Models { diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableServiceProperties.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableServiceProperties.cs index 228f836045213..706caa8f96d4a 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableServiceProperties.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableServiceProperties.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Data.Tables; namespace Azure.Data.Tables.Models { diff --git a/sdk/template/Azure.Template/src/Generated/Internal/Optional.cs b/sdk/template/Azure.Template/src/Generated/Internal/Optional.cs deleted file mode 100644 index c87e54ec79196..0000000000000 --- a/sdk/template/Azure.Template/src/Generated/Internal/Optional.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Template -{ - internal static class Optional - { - public static bool IsCollectionDefined(IEnumerable collection) - { - return !(collection is ChangeTrackingList changeTrackingList && changeTrackingList.IsUndefined); - } - - public static bool IsCollectionDefined(IDictionary collection) - { - return !(collection is ChangeTrackingDictionary changeTrackingDictionary && changeTrackingDictionary.IsUndefined); - } - - public static bool IsCollectionDefined(IReadOnlyDictionary collection) - { - return !(collection is ChangeTrackingDictionary changeTrackingDictionary && changeTrackingDictionary.IsUndefined); - } - - public static bool IsDefined(T? value) - where T : struct - { - return value.HasValue; - } - - public static bool IsDefined(object value) - { - return value != null; - } - - public static bool IsDefined(JsonElement value) - { - return value.ValueKind != JsonValueKind.Undefined; - } - - public static bool IsDefined(string value) - { - return value != null; - } - } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Internal/ChangeTrackingList.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..f1aac938396e8 --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.TextAnalytics.Legacy +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobErrorsAndStatistics.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobErrorsAndStatistics.Serialization.cs index 76fd8662915ff..e396b86522c84 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobErrorsAndStatistics.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobErrorsAndStatistics.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobErrorsAndStatistics.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobErrorsAndStatistics.cs index 37cb807f90ece..5cc55258b5af9 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobErrorsAndStatistics.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobErrorsAndStatistics.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobState.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobState.cs index f003091777f60..fc16c405934a1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobState.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobState.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure.AI.TextAnalytics.Legacy.Models; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntity.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntity.Serialization.cs index dabfa085057c8..d411e4ea26bab 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntity.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntity.Serialization.cs @@ -8,7 +8,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.AI.TextAnalytics.Legacy.Models; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntity.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntity.cs index cc98469f63d96..b5ed5369987ec 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntity.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntity.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure.AI.TextAnalytics.Legacy.Models; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareJobState.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareJobState.cs index da9334af01e63..1f932b9cfb309 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareJobState.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareJobState.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure.AI.TextAnalytics.Legacy.Models; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareLinkingProperties.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareLinkingProperties.Serialization.cs index 001fc90d89458..0ca5de2374c7f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareLinkingProperties.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareLinkingProperties.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareLinkingProperties.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareLinkingProperties.cs index a4453c3f87b1d..6072546e51f1d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareLinkingProperties.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareLinkingProperties.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareTaskResult.Serialization.cs index 251433200de7b..a8fe44587f9a6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareTaskResult.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareTaskResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareTaskResult.cs index ee52c54904461..93330119761d3 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareTaskResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareTaskResult.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobManifestTasks.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobManifestTasks.cs index eb55a7d36411d..835bddbdc82d1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobManifestTasks.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobManifestTasks.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTaskParameters.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTaskParameters.cs index 93047e898e507..1ce269ebb2aea 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTaskParameters.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTaskParameters.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using Azure.AI.TextAnalytics.Legacy.Models; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentiment.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentiment.Serialization.cs index ec0eb95a8034c..37def709308c7 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentiment.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentiment.Serialization.cs @@ -8,7 +8,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.AI.TextAnalytics.Legacy.Models; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentiment.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentiment.cs index c8368a4c5d2d4..4f61064061ad8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentiment.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentiment.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure.AI.TextAnalytics.Legacy.Models; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasks.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasks.Serialization.cs index 6b90454ec6a9e..d5457aa8a16aa 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasks.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasks.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.TextAnalytics.Legacy; namespace Azure.AI.TextAnalytics.Legacy.Models { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasks.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasks.cs index b3907608ea9ce..c31a020f9d507 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasks.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasks.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.TextAnalytics.Legacy; namespace Azure.AI.TextAnalytics.Legacy.Models { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsError.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsError.Serialization.cs index 89085bbd35518..2af423849da1d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsError.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsError.Serialization.cs @@ -8,7 +8,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.AI.TextAnalytics.Legacy.Models; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsError.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsError.cs index a78b0e31339a9..7e3a88a9e6ec6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsError.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsError.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure.AI.TextAnalytics.Legacy.Models; -using Azure.Core; namespace Azure.AI.TextAnalytics.Legacy { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Internal/ChangeTrackingList.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..6d8d854519676 --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.TextAnalytics +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummaryInternal.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummaryInternal.cs index 9a59dd9505e25..2ac82d26b7a09 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummaryInternal.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummaryInternal.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.AI.TextAnalytics; namespace Azure.AI.TextAnalytics.Models { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.Serialization.cs index d98934abd03a0..fa6f337a8278d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.Serialization.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; +using Azure.AI.TextAnalytics; namespace Azure.AI.TextAnalytics.Models { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.cs index 4eba5063ba67f..4a7c1db7707fc 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.TextAnalytics; namespace Azure.AI.TextAnalytics.Models { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Error.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Error.cs index fea9d91631a2a..f74fb1d2563e6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Error.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Error.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.AI.TextAnalytics; using Azure.Core; namespace Azure.AI.TextAnalytics.Models diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.cs index 513e3aa59cddb..26c429a0439b3 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure.AI.TextAnalytics; -using Azure.Core; namespace Azure.AI.TextAnalytics.Models { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobErrors.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobErrors.cs index 3de09f3bb2d8a..a45682bfeca7d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobErrors.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobErrors.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.TextAnalytics; namespace Azure.AI.TextAnalytics.Models { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobState.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobState.cs index 1c00b4e19a776..9db8b0007c378 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobState.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobState.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using Azure.AI.TextAnalytics; -using Azure.Core; namespace Azure.AI.TextAnalytics.Models { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionAnalysisInput.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionAnalysisInput.cs index 18dacad1e5ca1..d15fbe115fcdd 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionAnalysisInput.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionAnalysisInput.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.TextAnalytics; namespace Azure.AI.TextAnalytics.Models { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageAnalysisInput.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageAnalysisInput.cs index d003323584701..7de35b7cdc845 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageAnalysisInput.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageAnalysisInput.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.AI.TextAnalytics; namespace Azure.AI.TextAnalytics.Models { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTaskParameters.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTaskParameters.cs index f90135c9a2801..19f917262e2ee 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTaskParameters.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTaskParameters.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using Azure.AI.TextAnalytics; -using Azure.Core; namespace Azure.AI.TextAnalytics.Models { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Internal/ChangeTrackingList.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..044ca6db201cf --- /dev/null +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.IoT.TimeSeriesInsights +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/CategoricalVariable.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/CategoricalVariable.cs index a8e17c6084c21..d71ace2fa9ddd 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/CategoricalVariable.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/CategoricalVariable.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/EventSchema.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/EventSchema.Serialization.cs index 002185c4e1a01..45ebf6e442498 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/EventSchema.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/EventSchema.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/EventSchema.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/EventSchema.cs index dd85f21bedf0a..2ebc9db265d2c 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/EventSchema.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/EventSchema.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.cs index e4db62114c0d8..f436bbf0f53ae 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.Serialization.cs index 9cca972ee5c83..5ca55fb131223 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.cs index e6504748e4689..5716bdafb194c 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.Serialization.cs index d12b9327a15ec..6aa7ddfe312a2 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.cs index 6ee94a7b2aef7..95aeb2b9b3eec 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.Serialization.cs index 369909bb048e9..8f066fe3e7945 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.cs index f05f6c9d07b18..2620a7706209f 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.cs index 61fae650a4e9d..6a3cd2500b548 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.cs index b0a5d8314eb41..43c0a9bd48ea6 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.cs index 00e13edb156e4..ee3834045a53e 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.cs index e62178bcd4abc..6c6ccf88ac230 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.Serialization.cs index e523600c70cc7..cb5f10f892784 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.cs index 5570dab4192e7..855671b6b3bb4 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.cs index 1be91aa36a01b..ce32b0b601180 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.cs index c16eb4e7b92e5..7a97c234968b1 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.cs index 19a057ec475f7..f8265b5a1dcbb 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestResponse.Serialization.cs index ee2616aa5a197..f084aacd1ad8f 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestResponse.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestResponse.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestResponse.cs index c80f1162c31ff..973f5a4e71fad 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestResponse.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestResponse.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryResultPage.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryResultPage.cs index 0cd7cbb378f75..19f7ddcd5fe6d 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryResultPage.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryResultPage.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchHierarchyNodesResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchHierarchyNodesResponse.Serialization.cs index 76d946b4ee48b..1e3ffe34f49bf 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchHierarchyNodesResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchHierarchyNodesResponse.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchHierarchyNodesResponse.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchHierarchyNodesResponse.cs index 90ec60e9076d9..3e1f022dcce8b 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchHierarchyNodesResponse.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchHierarchyNodesResponse.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesRequest.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesRequest.cs index 31482a55fd3fe..2435224f246b9 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesRequest.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesRequest.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponse.Serialization.cs index 900249739dc96..44804fc651bfd 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponse.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponse.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponse.cs index 155018e51017f..068a3269d3a49 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponse.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponse.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.cs index 44aca4276b04c..bbe6b8faed606 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesModelSettings.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesModelSettings.Serialization.cs index 70fded1f53cb5..f2987d75136ee 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesModelSettings.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesModelSettings.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesModelSettings.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesModelSettings.cs index f220f2703d23c..08bbd8d335bf0 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesModelSettings.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesModelSettings.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.cs index dfb2125a3347d..f9eb5edb965bd 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.cs index f335ed781d3f6..891bcbeba4632 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.cs index 2a54b24172686..781b87c1d3993 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.IoT.TimeSeriesInsights { diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Internal/ChangeTrackingList.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..698d264603f89 --- /dev/null +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.TrafficManager +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerHeatMapTrafficFlow.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerHeatMapTrafficFlow.cs index 9aa06e3682b55..9a124bdc5ac15 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerHeatMapTrafficFlow.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerHeatMapTrafficFlow.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Net; -using Azure.Core; +using Azure.ResourceManager.TrafficManager; namespace Azure.ResourceManager.TrafficManager.Models { diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerMonitorConfig.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerMonitorConfig.cs index 20adb54fa0958..59606c576ff87 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerMonitorConfig.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerMonitorConfig.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.TrafficManager; namespace Azure.ResourceManager.TrafficManager.Models { diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerProfileListResult.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerProfileListResult.cs index 695a8e0683b3e..c261340aab5d0 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerProfileListResult.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerProfileListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.TrafficManager; namespace Azure.ResourceManager.TrafficManager.Models diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerRegion.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerRegion.cs index e401d8f15c97c..4b4bc5bab0a55 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerRegion.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Models/TrafficManagerRegion.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.TrafficManager; namespace Azure.ResourceManager.TrafficManager.Models { diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Internal/ChangeTrackingList.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..cd35615255fbe --- /dev/null +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.Translation.Document +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationFileFormat.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationFileFormat.Serialization.cs index 2aaf491922a26..a4a723de62924 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationFileFormat.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationFileFormat.Serialization.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core; namespace Azure.AI.Translation.Document { diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationFileFormat.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationFileFormat.cs index 835d3d537b1cc..c41ddbdc000be 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationFileFormat.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationFileFormat.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; namespace Azure.AI.Translation.Document { diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationTarget.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationTarget.cs index 585577a557bf4..879810eec207f 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationTarget.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationTarget.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.AI.Translation.Document { diff --git a/sdk/translation/Azure.AI.Translation.Text/src/Generated/Internal/ChangeTrackingList.cs b/sdk/translation/Azure.AI.Translation.Text/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..1b69c636bbd97 --- /dev/null +++ b/sdk/translation/Azure.AI.Translation.Text/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.Translation.Text +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Internal/ChangeTrackingList.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..f02f019c590a9 --- /dev/null +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Media.VideoAnalyzer.Edge +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDevice.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDevice.cs index f2786f9418c4c..53749cd067395 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDevice.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDevice.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Media.VideoAnalyzer.Edge; namespace Azure.Media.VideoAnalyzer.Edge.Models { diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDeviceCollection.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDeviceCollection.cs index af3e44d65cf89..851bab534f21c 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDeviceCollection.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDeviceCollection.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Media.VideoAnalyzer.Edge; namespace Azure.Media.VideoAnalyzer.Edge.Models { diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineCollection.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineCollection.cs index e6f9763f2adc7..aab8bdf5ef7ef 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineCollection.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineCollection.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Media.VideoAnalyzer.Edge; namespace Azure.Media.VideoAnalyzer.Edge.Models { diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineProperties.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineProperties.cs index 2d29777a25e73..5d2fcbca67878 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineProperties.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineProperties.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Media.VideoAnalyzer.Edge; namespace Azure.Media.VideoAnalyzer.Edge.Models { diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NodeInput.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NodeInput.cs index 4f45e0ffbb95f..75289b41db363 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NodeInput.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NodeInput.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Media.VideoAnalyzer.Edge; namespace Azure.Media.VideoAnalyzer.Edge.Models { diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDevice.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDevice.cs index b76a363cf32b3..c27c33acc0811 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDevice.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDevice.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Media.VideoAnalyzer.Edge; namespace Azure.Media.VideoAnalyzer.Edge.Models { diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDns.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDns.cs index 727b55f545e36..93bf34cb01bf1 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDns.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDns.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Media.VideoAnalyzer.Edge; namespace Azure.Media.VideoAnalyzer.Edge.Models { diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyCollection.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyCollection.cs index f64bad55fca37..6e19d10963d15 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyCollection.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyCollection.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Media.VideoAnalyzer.Edge; namespace Azure.Media.VideoAnalyzer.Edge.Models { diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyProperties.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyProperties.cs index c899b48c52032..7e92d098dce19 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyProperties.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyProperties.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Media.VideoAnalyzer.Edge; namespace Azure.Media.VideoAnalyzer.Edge.Models { diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterCollection.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterCollection.cs index cef25bf2cdb45..2c24fc12548ff 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterCollection.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterCollection.cs @@ -6,7 +6,7 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; +using Azure.Media.VideoAnalyzer.Edge; namespace Azure.Media.VideoAnalyzer.Edge.Models { diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountZoneEvents.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountZoneEvents.cs index 9db0d8bc2f7dd..a7fddb65c36c5 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountZoneEvents.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountZoneEvents.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Media.VideoAnalyzer.Edge; namespace Azure.Media.VideoAnalyzer.Edge.Models { diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceZoneEvents.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceZoneEvents.cs index dd6d8ec316e81..1d2d7d7fe60ca 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceZoneEvents.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceZoneEvents.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Media.VideoAnalyzer.Edge; namespace Azure.Media.VideoAnalyzer.Edge.Models { diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingLineEvents.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingLineEvents.cs index 614ee86e0a129..4f0587d6a1235 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingLineEvents.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingLineEvents.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Media.VideoAnalyzer.Edge; namespace Azure.Media.VideoAnalyzer.Edge.Models { diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingZoneEvents.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingZoneEvents.cs index 7c6e4ed39cbbc..b90a970c7bd86 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingZoneEvents.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingZoneEvents.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.Media.VideoAnalyzer.Edge; namespace Azure.Media.VideoAnalyzer.Edge.Models { diff --git a/sdk/vision/Azure.AI.Vision.ImageAnalysis/src/Generated/Internal/ChangeTrackingList.cs b/sdk/vision/Azure.AI.Vision.ImageAnalysis/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..843aa3e043e76 --- /dev/null +++ b/sdk/vision/Azure.AI.Vision.ImageAnalysis/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.Vision.ImageAnalysis +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Internal/ChangeTrackingList.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..7fcae82928dda --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.VoiceServices +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/VoiceServicesPrimaryRegionProperties.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/VoiceServicesPrimaryRegionProperties.cs index c2c50ae03015b..60bc059bcbd6a 100644 --- a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/VoiceServicesPrimaryRegionProperties.cs +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/VoiceServicesPrimaryRegionProperties.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Core; +using Azure.ResourceManager.VoiceServices; namespace Azure.ResourceManager.VoiceServices.Models { diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/Internal/ChangeTrackingList.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..f2ab0b4441e24 --- /dev/null +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Messaging.WebPubSub +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Internal/ChangeTrackingList.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..9d90753629c83 --- /dev/null +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.WebPubSub +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/LiveTraceConfiguration.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/LiveTraceConfiguration.cs index 6bed6aec8dbdc..32c9169957652 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/LiveTraceConfiguration.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/LiveTraceConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models { diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/PrivateEndpointConnectionList.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/PrivateEndpointConnectionList.cs index b17ab206b8caf..8edb7e1bee98a 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/PrivateEndpointConnectionList.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/PrivateEndpointConnectionList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/PrivateLinkResourceList.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/PrivateLinkResourceList.cs index 1bc9d8114165f..7cf2c4cd0a189 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/PrivateLinkResourceList.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/PrivateLinkResourceList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models { diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/PublicNetworkAcls.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/PublicNetworkAcls.cs index c726d104abe41..9e255792dd1fe 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/PublicNetworkAcls.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/PublicNetworkAcls.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models { diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/ResourceLogConfiguration.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/ResourceLogConfiguration.cs index 549490eabb244..5359328526058 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/ResourceLogConfiguration.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/ResourceLogConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models { diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/SharedPrivateLinkResourceList.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/SharedPrivateLinkResourceList.cs index 932e9ee0bfd20..8866893491887 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/SharedPrivateLinkResourceList.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/SharedPrivateLinkResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/SignalRServiceUsageList.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/SignalRServiceUsageList.cs index 5af6642d45006..b234a751418d1 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/SignalRServiceUsageList.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/SignalRServiceUsageList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models { diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/SkuList.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/SkuList.cs index 3b76e3a19345b..1f928568b136a 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/SkuList.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/SkuList.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models { diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubEventHandler.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubEventHandler.cs index 1526b3bdf225a..2dc6aa587853f 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubEventHandler.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubEventHandler.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models { diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubHubList.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubHubList.cs index 0a04c2ae57209..e9c62008f301a 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubHubList.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubHubList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubHubProperties.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubHubProperties.cs index 3cdd48a02e018..d468c4a197635 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubHubProperties.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubHubProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models { diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubNetworkAcls.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubNetworkAcls.cs index 7b69f8d258851..ccaee55cb6ab0 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubNetworkAcls.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubNetworkAcls.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models { diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubPrivateLink.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubPrivateLink.cs index 512c78019d677..be95c8f19a9f2 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubPrivateLink.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubPrivateLink.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Models; +using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models { diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubResourceList.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubResourceList.cs index f52832272a21f..97e681b4a586b 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubResourceList.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubResourceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubSkuCapacity.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubSkuCapacity.cs index 133b898da9bf1..422411e70dc45 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubSkuCapacity.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/Models/WebPubSubSkuCapacity.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.WebPubSub; namespace Azure.ResourceManager.WebPubSub.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Internal/ChangeTrackingList.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..e8b6a49355fe8 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.AppService +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AbnormalTimePeriod.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AbnormalTimePeriod.cs index 94209e76b120e..d36229f14a3a9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AbnormalTimePeriod.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AbnormalTimePeriod.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AllowedAudiencesValidation.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AllowedAudiencesValidation.cs index 70bcca984bb1a..a2d744b251f8c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AllowedAudiencesValidation.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AllowedAudiencesValidation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AnalysisDetectorEvidences.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AnalysisDetectorEvidences.cs index d5e3bf9f1eb91..716c5c895b719 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AnalysisDetectorEvidences.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AnalysisDetectorEvidences.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificatePatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificatePatch.cs index e931b6559017a..d0acfbda927d0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificatePatch.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppCertificatePatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadAllowedPrincipals.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadAllowedPrincipals.cs index 53db4fe5ee73d..0e22fc64fb2fe 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadAllowedPrincipals.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadAllowedPrincipals.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadLoginFlow.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadLoginFlow.cs index fb16991bd2522..d9052407e36c0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadLoginFlow.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadLoginFlow.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadValidation.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadValidation.cs index 65854955d7d4c..562edcc086397 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadValidation.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceAadValidation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.cs index ee4cf3919714e..82507779ab872 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCertificateOrderPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCorsSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCorsSettings.cs index 26743aed05fb4..fff5c4985141c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCorsSettings.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceCorsSettings.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDeploymentLocations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDeploymentLocations.cs index 240a756d1a70f..ce438163f21ef 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDeploymentLocations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDeploymentLocations.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainPatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainPatch.cs index 2681a9e98cad4..ba0726fdeec73 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainPatch.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceDomainPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEndpointDependency.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEndpointDependency.cs index 88850e23470a7..951e4a492cb2f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEndpointDependency.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEndpointDependency.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentAddressResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentAddressResult.cs index 98e453bfff503..21669f37f4d46 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentAddressResult.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentAddressResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Net; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentPatch.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentPatch.cs index 3fa11be063f6e..e57be4e1b23c4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentPatch.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentPatch.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentProperties.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentProperties.cs index c2f01585fd51e..49453948d0693 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentProperties.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceEnvironmentProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostName.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostName.cs index ea04f66c3f34d..b6f6e8cd62958 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostName.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceHostName.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceOperation.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceOperation.cs index 6c2863eb92b52..1a5a5488eeb1f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceOperation.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceOperation.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using Azure; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePrivateLinkResourceProperties.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePrivateLinkResourceProperties.cs index 0e806420a2245..b660d25a12c9f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePrivateLinkResourceProperties.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServicePrivateLinkResourceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceRecommendation.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceRecommendation.cs index 9d6228a88f82d..179d18b164a5a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceRecommendation.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceRecommendation.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuDescription.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuDescription.cs index 70c21a52b7983..2d5d6a9e3cac7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuDescription.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuDescription.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuResult.cs index 71f387b0ad51b..941d13889a38e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuResult.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceSkuResult.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkProperties.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkProperties.cs index 351a228a0243b..cb1f4261acc59 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkProperties.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceVirtualNetworkProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStack.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStack.cs index 2d7ee93c7be4e..1f95ebfda61b5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStack.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStack.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStackResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStackResource.cs index ac5f07c8f7e36..d82eaa09ad837 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStackResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ApplicationStackResource.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealTriggers.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealTriggers.cs index 0077457a8ca4e..daafdfae8d7fd 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealTriggers.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AutoHealTriggers.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerCpuUsage.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerCpuUsage.cs index c1f85df7c6268..e1ba68f68dc19 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerCpuUsage.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ContainerCpuUsage.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostnameAnalysisResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostnameAnalysisResult.cs index 4f0df7d209998..81b281b5f7963 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostnameAnalysisResult.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/CustomHostnameAnalysisResult.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataProviderMetadata.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataProviderMetadata.cs index f1d3410e189d4..6523b38f8e61e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataProviderMetadata.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataProviderMetadata.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataTableResponseObject.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataTableResponseObject.cs index 34c4a9d11d822..1c6159582c39e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataTableResponseObject.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DataTableResponseObject.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DefaultAuthorizationPolicy.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DefaultAuthorizationPolicy.cs index 959a3c308fde8..debf1db85bc69 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DefaultAuthorizationPolicy.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DefaultAuthorizationPolicy.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorAbnormalTimePeriod.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorAbnormalTimePeriod.cs index 4866cf33e1ff3..3d145e2386274 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorAbnormalTimePeriod.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorAbnormalTimePeriod.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorDataSource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorDataSource.cs index d98ac0db80c08..7deb878487566 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorDataSource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorDataSource.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorInfo.cs index 62450af055a57..c517a76295875 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DetectorInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticAnalysis.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticAnalysis.cs index 9edc492e0c324..caddab9199ddc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticAnalysis.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticAnalysis.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDetectorResponse.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDetectorResponse.cs index 652b441f20591..191b6047d0cfd 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDetectorResponse.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticDetectorResponse.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticMetricSet.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticMetricSet.cs index 477889ecadb09..78b548195eedb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticMetricSet.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticMetricSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticSolution.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticSolution.cs index 4072f421f8916..14e645401e11f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticSolution.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DiagnosticSolution.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainPurchaseConsent.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainPurchaseConsent.cs index e7832c21f90ca..4492b6aeb171b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainPurchaseConsent.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/DomainPurchaseConsent.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppMajorVersion.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppMajorVersion.cs index a597656371eb6..b756f229500c2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppMajorVersion.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppMajorVersion.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimeSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimeSettings.cs index a80172a6b0d2b..8eed86cc892c8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimeSettings.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppRuntimeSettings.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppStack.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppStack.cs index be54007c242e9..6db22d0bec56c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppStack.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/FunctionAppStack.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalCsmSkuDescription.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalCsmSkuDescription.cs index c5e0827989651..b904601250b93 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalCsmSkuDescription.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalCsmSkuDescription.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalValidation.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalValidation.cs index d7f651e8e5b1c..2c5ef3dac389c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalValidation.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/GlobalValidation.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InboundEnvironmentEndpoint.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InboundEnvironmentEndpoint.cs index 3569b48db8942..bcfc10b09ca94 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InboundEnvironmentEndpoint.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/InboundEnvironmentEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/JwtClaimChecks.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/JwtClaimChecks.cs index 03734637077d6..a1abd19cb6945 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/JwtClaimChecks.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/JwtClaimChecks.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginScopes.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginScopes.cs index 65422c1704bb7..d57cb78611393 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginScopes.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/LoginScopes.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricSpecification.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricSpecification.cs index bda36d008e0ee..d8239a30ae343 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricSpecification.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/MetricSpecification.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectLogin.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectLogin.cs index 54e2ce2db9680..f114871c69e3c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectLogin.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OpenIdConnectLogin.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OutboundEnvironmentEndpoint.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OutboundEnvironmentEndpoint.cs index 0e9cedd511563..16eed0596b262 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OutboundEnvironmentEndpoint.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/OutboundEnvironmentEndpoint.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonSet.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonSet.cs index 3ea8d9b54a5e4..d9d0720dffeb0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonSet.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PerfMonSet.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateAccessVirtualNetwork.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateAccessVirtualNetwork.cs index adf51e5061ef2..27c381ae3e041 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateAccessVirtualNetwork.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/PrivateAccessVirtualNetwork.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/QueryUtterancesResults.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/QueryUtterancesResults.cs index dcd654d59b8b3..c2ead5a1c2d1e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/QueryUtterancesResults.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/QueryUtterancesResults.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RemotePrivateEndpointConnection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RemotePrivateEndpointConnection.cs index 6a39028fe8dd0..10b5f1d926128 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RemotePrivateEndpointConnection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RemotePrivateEndpointConnection.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Net; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; using Azure.ResourceManager.Resources.Models; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricDefinition.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricDefinition.cs index 5b9c5ad7a489d..425116b3f17b8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricDefinition.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResourceMetricDefinition.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.cs index 3d55f2a0a6f64..740cba88c6ac4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ResponseMessageEnvelopeRemotePrivateEndpointConnection.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RestoreRequestInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RestoreRequestInfo.cs index fb9423be28e9e..7fd4a17bde445 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RestoreRequestInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RestoreRequestInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RoutingRuleExperiments.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RoutingRuleExperiments.cs index 5e6094c43d138..f7f9b61599ebf 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RoutingRuleExperiments.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/RoutingRuleExperiments.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SampleUtterance.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SampleUtterance.cs index f74a65abf18a2..e265d95f11f12 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SampleUtterance.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SampleUtterance.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServiceSpecification.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServiceSpecification.cs index 1c43153e3299f..398aea34b34f9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServiceSpecification.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/ServiceSpecification.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteAuthSettings.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteAuthSettings.cs index 80cf277751a40..2fd9c6e68bbb6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteAuthSettings.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteAuthSettings.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteCloneability.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteCloneability.cs index bedb45b9690fd..c1d4fdabe2d22 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteCloneability.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteCloneability.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.cs index 1713511cbc73a..713bb3318f35e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePatchInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePatchInfo.cs index d9d7b5a01d314..0cf335a0e8e53 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePatchInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SitePatchInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMajorVersion.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMajorVersion.cs index 828fff7fe9fa7..c15a31ade9b22 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMajorVersion.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StackMajorVersion.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteStringList.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteStringList.cs index 7a32871232287..b1e8e6b5c1722 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteStringList.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/StaticSiteStringList.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualApplication.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualApplication.cs index ead4e566534b1..b5acf4212b6ca 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualApplication.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualApplication.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualNetworkValidationFailureDetails.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualNetworkValidationFailureDetails.cs index 8d099de27217f..f1c0743dcbfc5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualNetworkValidationFailureDetails.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/VirtualNetworkValidationFailureDetails.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupInfo.cs index 1ceaeffac6dff..a110b446141ca 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppBackupInfo.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppLoginInfo.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppLoginInfo.cs index f4f6f7fb80faf..a11796bdf6c69 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppLoginInfo.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppLoginInfo.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLog.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLog.cs index 4dbf9d8d37754..da5f47eb2ce99 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLog.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMSDeployLog.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMajorVersion.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMajorVersion.cs index 55ad8f1d4f970..61d4be596d083 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMajorVersion.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppMajorVersion.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.AppService; namespace Azure.ResourceManager.AppService.Models { diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppStack.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppStack.cs index fefedca7b2bba..ed5e957a8dbbc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppStack.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WebAppStack.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.AppService; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AppService.Models diff --git a/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Internal/ChangeTrackingList.cs b/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..79177a02fb35f --- /dev/null +++ b/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.WorkloadMonitor +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Models/HealthMonitorList.cs b/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Models/HealthMonitorList.cs index 40279a9385a18..e73a748b3f454 100644 --- a/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Models/HealthMonitorList.cs +++ b/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Models/HealthMonitorList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.WorkloadMonitor; namespace Azure.ResourceManager.WorkloadMonitor.Models diff --git a/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Models/HealthMonitorStateChangeList.cs b/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Models/HealthMonitorStateChangeList.cs index 1cd571eedf18b..2b87b4fcd8349 100644 --- a/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Models/HealthMonitorStateChangeList.cs +++ b/sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/src/Generated/Models/HealthMonitorStateChangeList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.WorkloadMonitor; namespace Azure.ResourceManager.WorkloadMonitor.Models diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Internal/ChangeTrackingList.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 0000000000000..a98a098eb4ee2 --- /dev/null +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Workloads +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerFullResourceNames.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerFullResourceNames.cs index 96d33c7f99279..f7c02739022f9 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerFullResourceNames.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerFullResourceNames.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerVmDetails.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerVmDetails.cs index 522fef99a486f..cca3cd7c9beb9 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerVmDetails.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerVmDetails.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Resources.Models; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerFullResourceNames.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerFullResourceNames.cs index 80b5ad4ed64a9..9c257d470bca4 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerFullResourceNames.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerFullResourceNames.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerVmDetails.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerVmDetails.cs index a72f0c1724278..9a7af748d36dd 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerVmDetails.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerVmDetails.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Resources.Models; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseServerFullResourceNames.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseServerFullResourceNames.cs index ae559c5f06654..fde0de6658b21 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseServerFullResourceNames.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseServerFullResourceNames.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseVmDetails.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseVmDetails.cs index 41ba4d86fd2aa..9c19614d147cd 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseVmDetails.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseVmDetails.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Resources.Models; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LoadBalancerResourceNames.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LoadBalancerResourceNames.cs index 2dabd4c14a43f..504a17100a991 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LoadBalancerResourceNames.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LoadBalancerResourceNames.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MonitorListResult.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MonitorListResult.cs index 7008696aa945e..b877e7709bd89 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MonitorListResult.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MonitorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ProviderInstanceListResult.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ProviderInstanceListResult.cs index 861cee08398b0..8c4df69ff5e55 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ProviderInstanceListResult.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ProviderInstanceListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapApplicationServerInstanceList.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapApplicationServerInstanceList.cs index 1ea895b230520..9f99ed0e7101b 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapApplicationServerInstanceList.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapApplicationServerInstanceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapAvailabilityZoneDetailsResult.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapAvailabilityZoneDetailsResult.cs index 95c55f12a4a2a..aa953781ce873 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapAvailabilityZoneDetailsResult.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapAvailabilityZoneDetailsResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapCentralInstanceList.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapCentralInstanceList.cs index 72ca035d7830b..c40aa3a51290e 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapCentralInstanceList.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapCentralInstanceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapDatabaseInstanceList.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapDatabaseInstanceList.cs index 5b14a6fefda8c..86c9cc8958833 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapDatabaseInstanceList.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapDatabaseInstanceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapDiskConfiguration.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapDiskConfiguration.cs index 3a0596aaf591e..76b0f7d445f5d 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapDiskConfiguration.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapDiskConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorListResult.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorListResult.cs index 1a4ed6bf20685..8ade101358f6a 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorListResult.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorPropertiesGrouping.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorPropertiesGrouping.cs index 00081900802f6..2d282b56253ae 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorPropertiesGrouping.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorPropertiesGrouping.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorSidMapping.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorSidMapping.cs index 36023683b8af5..8ad1a49231c4c 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorSidMapping.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapLandscapeMonitorSidMapping.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapNetWeaverProviderInstanceProperties.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapNetWeaverProviderInstanceProperties.cs index e5bd059350bc6..605ff62b7285d 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapNetWeaverProviderInstanceProperties.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapNetWeaverProviderInstanceProperties.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapSshConfiguration.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapSshConfiguration.cs index fa107a51b8b1e..c476e1d9f6270 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapSshConfiguration.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapSshConfiguration.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapSupportedResourceSkusResult.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapSupportedResourceSkusResult.cs index d3dbb5e7b7721..9f85d30f6e962 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapSupportedResourceSkusResult.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapSupportedResourceSkusResult.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapVirtualInstanceErrorDetail.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapVirtualInstanceErrorDetail.cs index fd7f3fd59d198..18befe04be704 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapVirtualInstanceErrorDetail.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapVirtualInstanceErrorDetail.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.Core; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models { diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapVirtualInstanceList.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapVirtualInstanceList.cs index e7bc97608cc9f..4d819b793bce1 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapVirtualInstanceList.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SapVirtualInstanceList.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/VirtualMachineResourceNames.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/VirtualMachineResourceNames.cs index d9950af728f81..0746dfa3ceded 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/VirtualMachineResourceNames.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/VirtualMachineResourceNames.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Workloads; namespace Azure.ResourceManager.Workloads.Models {