Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate both a public client and model together #4706

Open
markphillips100 opened this issue May 14, 2024 · 1 comment
Open

Unable to generate both a public client and model together #4706

markphillips100 opened this issue May 14, 2024 · 1 comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that v3 Version 3 of AutoRest C# generator.

Comments

@markphillips100
Copy link

Describe the issue or request
I'm attempting to generate a C# client and typed model for the Azure Maps Creator data plane, spec tag package-2023-03-preview. To obtain a model I have always used (and is suggested in a few issues here) generation1-convenience-client: true, and to obtain a public client that uses that model I also use public-clients: true.

It seems that with the latest autorest and autorest/csharp it is not possible to use both flags set to true. So I either get a model with no public client, or no model and a public client that has no knowledge of a model, i.e. all method return types are non-generic Response type.

I've no idea when this change occurred as it's been over a year since I last attempted a generation.

Describe your ideas for solutions
Support creation of a typed public client with a typed model for the data plane please.

Info:
autorest: 3.7.1
autorest/csharp: 3.0.0-beta.20240511.1

@markphillips100 markphillips100 added the v3 Version 3 of AutoRest C# generator. label May 14, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels May 14, 2024
@markphillips100
Copy link
Author

Forgot to mention the original autorest/csharp version that worked for me was 3.0.0-beta.20230111.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that v3 Version 3 of AutoRest C# generator.
Projects
None yet
Development

No branches or pull requests

1 participant