-
Notifications
You must be signed in to change notification settings - Fork 175
Open
Labels
MgmtThis issue is related to a management-plane library.This issue is related to a management-plane library.v3Version 3 of AutoRest C# generator.Version 3 of AutoRest C# generator.
Description
Description
In tsp 0.60 and prior, getResourceOperation will return undefined for some mgmt cases, like
autorest.csharp/test/TestProjects/MgmtTypeSpec/foo.tsp
Lines 10 to 15 in ab56c7d
| @resource("foos") | |
| model Foo is TrackedResource<FooProperties> { | |
| ...ResourceNameParameter<Foo, SegmentName = "foos">; | |
| ...ExtendedLocationProperty; | |
| } |
So, previous the ResourceName is Foos which is the interface name:
| interface Foos { |
But in 0.61, getResourceOperation can return the resource operation, which seems the correct behavior. However, that will return different ResourceName. Check this PR: https://github.com/Azure/autorest.csharp/pull/5110/files#diff-81dc15d9aacc476e7f1fc431451c064ac2727e5c09cde422e3ddc362b7b57981L2714
I think the upstream actually has fixed an issue, but unfortunately cause regression in some cases.
Metadata
Metadata
Assignees
Labels
MgmtThis issue is related to a management-plane library.This issue is related to a management-plane library.v3Version 3 of AutoRest C# generator.Version 3 of AutoRest C# generator.
