diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs index a147315362ff..d58cb21153e9 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/Resource.cs @@ -12,6 +12,11 @@ namespace Azure.ResourceManager.Core public abstract class Resource : IEquatable>, IEquatable, IComparable>, IComparable where TIdentifier : TenantResourceIdentifier { + /// + /// Initializes an empty instance of . + /// + protected 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 234ec575f3bb..418cba10f3bb 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubResource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/SubResource.cs @@ -9,6 +9,11 @@ namespace Azure.ResourceManager.Core [ReferenceType] public partial class SubResource { + /// + /// Initializes an empty instance of . + /// + protected internal SubResource() { } + /// Initializes a new instance of SubResource. /// ARM resource Id. protected internal SubResource(string id) diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TrackedResource.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TrackedResource.cs index 2ec69ab7f6ac..a41d4cbff5d8 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TrackedResource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/TrackedResource.cs @@ -12,6 +12,11 @@ namespace Azure.ResourceManager.Core [ReferenceType(typeof(TenantResourceIdentifier))] public abstract partial class TrackedResource : Resource where TIdentifier : TenantResourceIdentifier { + /// + /// Initializes an empty instance of . + /// + protected TrackedResource() { } + /// /// Initializes a new instance of the class for deserialization. /// @@ -21,7 +26,7 @@ public abstract partial class TrackedResource : Resource The tags for the resource. /// The location of the resource. protected TrackedResource(TIdentifier id, string name, ResourceType type, IDictionary tags, LocationData location) - :base(id, name, type) + : base(id, name, type) { Tags = tags ?? new Dictionary(StringComparer.InvariantCultureIgnoreCase); Location = location;