Skip to content

Method missing in ModelFactory with new MPG generator #54298

@live1206

Description

@live1206

While generate SDK for Azure.ResourceManager.Quota, QuotaAllocationRequestBase is missing.
Added it back with custom code for now in

// Will remove this custom code while https://github.com/Azure/azure-sdk-for-net/issues/54298 is fixed.
/// <summary> Initializes a new instance of <see cref="Models.QuotaAllocationRequestBase"/>. </summary>
/// <param name="limit"> The new quota limit for the subscription. The incremental quota will be allocated from pre-approved group quota. </param>
/// <param name="value"> Resource name. </param>
/// <param name="localizedValue"> Resource display name. </param>
/// <param name="region"> The location for which the subscription is allocated. </param>
/// <returns> A new <see cref="Models.QuotaAllocationRequestBase"/> instance for mocking. </returns>
public static QuotaAllocationRequestBase QuotaAllocationRequestBase(long? limit = null, string value = null, string localizedValue = null, string region = null)
{
return new QuotaAllocationRequestBase(new QuotaAllocationRequestBaseProperties(limit, new QuotaAllocationRequestBasePropertiesName(value, localizedValue, additionalBinaryDataProperties: null), region, additionalBinaryDataProperties: null), additionalBinaryDataProperties: null);
}

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