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

Ability to remove operations when generate sdk from TypeSpec #5191

Open
ArthurMa1978 opened this issue Dec 4, 2024 · 0 comments
Open

Ability to remove operations when generate sdk from TypeSpec #5191

ArthurMa1978 opened this issue Dec 4, 2024 · 0 comments
Assignees
Labels
Mgmt This issue is related to a management-plane library.

Comments

@ArthurMa1978
Copy link
Member

This is a function missing in MPG to generate SDK from TypeSpec.
Mark a operation internal doesn't work, like this:

@@access(OperationStatus.get, Access.internal, "csharp");

The GetOperationStatus also be shown up as public method in the generated SDK.
So the solution might be:

  1. Generate internal method for a internal operation.
  2. Provide another decorate to remove operations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

No branches or pull requests

2 participants