Skip to content

[BUG] Missing parameter in Public ctor #53696

@HarveyLink

Description

@HarveyLink

Library name and version

new gode gen with PaloAltoNetworks

Describe the bug

The resource model properties maked as flatten. the property model has a required porperty, it's not a requied parameter in the public ctor now.
Like:

model PrefixListResource
  is Azure.ResourceManager.ProxyResource<PrefixObject, false> {
  ...ResourceNameParameter<
    Resource = PrefixListResource,
...
}
model PrefixObject {
  description?: string;
  prefixList: string[];
}

Spec Link: https://github.com/Azure/azure-rest-api-specs/blob/f17f8a4c10b849aa2101140ecf4d78cad78ab299/specification/paloaltonetworks/PaloAltoNetworks.Management/models.tsp#L1157
It is exposed in the parameter in previous code gen.

Expected behavior

public LocalRulestackPrefixData(IEnumerable prefixList)

Actual behavior

public LocalRulestackPrefixData()

Reproduction Steps

/

Environment

No response

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