Commit cd4e110
Support Azure.ResourceManager.Legacy.TrackedResourceWithOptionalLocation (#53496)
* Initial plan
* WIP: Add support for TrackedResourceWithOptionalLocation
Added mapping in KnownManagementTypes.cs and updated baz.tsp to use Legacy.TrackedResourceWithOptionalLocation. Emitter logic partially implemented but needs refinement to avoid affecting other models.
Co-authored-by: live1206 <[email protected]>
* Support TrackedResourceWithOptionalLocation - nearly complete
- Added mapping in KnownManagementTypes.cs
- Updated baz.tsp to use Legacy.TrackedResourceWithOptionalLocation
- Implemented emitter logic to set correct base model cross-language ID
- BazData now extends TrackedResourceData as expected
- Remaining: 3 build errors due to duplicate properties (Tags, Location) and constructor signature mismatch - these should be handled by InheritableSystemObjectModelVisitor but require further investigation
Co-authored-by: live1206 <[email protected]>
* Revert emitter.ts changes as requested
Co-authored-by: live1206 <[email protected]>
* Regenerate mgmt test projects with updated baz.tsp
Co-authored-by: live1206 <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: live1206 <[email protected]>1 parent 162d19a commit cd4e110
File tree
6 files changed
+1409
-1334
lines changed- eng/packages/http-client-csharp-mgmt/generator
- Azure.Generator.Management/src/Primitives
- TestProjects/Local/Mgmt-TypeSpec
- src/Generated
6 files changed
+1409
-1334
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 36 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments