Skip to content

subscriptionId should be generated as method parameter #53181

@live1206

Description

@live1206

while onboarding Azure.ResourceManager.Quota to new mpg generator, subscriptionId was generated as client field in resourceCollection:

internal SubscriptionQuotaAllocationsListCollection(ArmClient client, ResourceIdentifier id, string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName) : base(client, id)

the expecting constructor should be
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

Metadata

Metadata

Assignees

Labels

CodeGenIssues that relate to code generationMgmtThis issue is related to a management package.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions