Skip to content

Operation ID changed after tsp 0.61 #5117

@archerzz

Description

@archerzz

Description

In tsp 0.60 and prior, getResourceOperation will return undefined for some mgmt cases, like

@resource("foos")
model Foo is TrackedResource<FooProperties> {
...ResourceNameParameter<Foo, SegmentName = "foos">;
...ExtendedLocationProperty;
}

Image

So, previous the ResourceName is Foos which is the interface name:

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.v3Version 3 of AutoRest C# generator.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions