diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs index d58cb21153e9..a6e4919d8afb 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs @@ -9,13 +9,13 @@ namespace Azure.ResourceManager.Core /// A class representing the base resource used by all azure resources. /// [ReferenceType(typeof(TenantResourceIdentifier))] - public abstract class Resource : IEquatable>, IEquatable, + public class Resource : IEquatable>, IEquatable, IComparable>, IComparable where TIdentifier : TenantResourceIdentifier { /// /// Initializes an empty instance of . /// - protected Resource() { } + public Resource() { } /// /// Initializes a new instance of for deserialization. diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubResource.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubResource.cs index 418cba10f3bb..6c508d40d1af 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubResource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubResource.cs @@ -12,7 +12,7 @@ public partial class SubResource /// /// Initializes an empty instance of . /// - protected internal SubResource() { } + public SubResource() { } /// Initializes a new instance of SubResource. /// ARM resource Id. diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TrackedResource.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TrackedResource.cs index a41d4cbff5d8..0cff89b90f27 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TrackedResource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TrackedResource.cs @@ -10,12 +10,16 @@ namespace Azure.ResourceManager.Core /// Generic representation of a tracked resource. All tracked resources should extend this class /// [ReferenceType(typeof(TenantResourceIdentifier))] - public abstract partial class TrackedResource : Resource where TIdentifier : TenantResourceIdentifier + public partial class TrackedResource : Resource + where TIdentifier : TenantResourceIdentifier { /// /// Initializes an empty instance of . /// - protected TrackedResource() { } + public TrackedResource(LocationData location) + { + Location = location; + } /// /// Initializes a new instance of the class for deserialization.