-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Open
Labels
CodeGenIssues that relate to code generationIssues that relate to code generationMgmtThis issue is related to a management package.This issue is related to a management package.
Description
while onboarding Azure.ResourceManager.Quota to new mpg generator, subscriptionId was generated as client field in resourceCollection:
Line 50 in f9bc060
| internal SubscriptionQuotaAllocationsListCollection(ArmClient client, ResourceIdentifier id, string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName) : base(client, id) |
the expecting constructor should be
Line 36 in 81fdb88
| internal SubscriptionQuotaAllocationsListCollection(ArmClient client, ResourceIdentifier id) : base(client, id) |
The original logic of populating additional constructor parameter in autorest.csharp is https://github.com/Azure/autorest.csharp/blob/d93297d16162903b0f2647f890a5db99535e2009/src/AutoRest.CSharp/Mgmt/Output/ResourceCollection.cs#L81-L132
refine the mgmt generator to align with autorest.csharp
Copilot
Metadata
Metadata
Assignees
Labels
CodeGenIssues that relate to code generationIssues that relate to code generationMgmtThis issue is related to a management package.This issue is related to a management package.