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

Create AutoRest Option page #61

Closed
christianhelle opened this issue Oct 7, 2019 · 3 comments
Closed

Create AutoRest Option page #61

christianhelle opened this issue Oct 7, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@christianhelle
Copy link
Owner

Create an option page for configuring how AutoRest is executed

Here are the options available in AutoRest version 2.0.4283

C# Generator (activated by --csharp)

  --azure-arm                   generate code in Azure flavor
  --fluent                      generate code in fluent flavor
  --namespace=<string>          determines the root namespace to be used in generated code
  --license-header=<string>     text to include as a header comment in generated files (magic strings: MICROSOFT_MIT, MICROSOFT_APACHE, MICROSOFT_MIT_NO_VERSION, MICROSOFT_APACHE_NO_VERSION, MICROSOFT_MIT_NO_CODEGEN)
  --payload-flattening-threshold=<number>  max. number of properties in a request body. If the number of properties in the request body is less than or equal to this value, these properties will be represented as individual method arguments instead
  --add-credentials             include a credential property and constructor parameter supporting different authentication behaviors
  --override-client-name=<string>  overrides the name of the client class (usually derived from $.info.title)
  --use-internal-constructors   generate constructors with internal instead of public visibility (useful for convenience layers)
  --sync-methods=<"essential" | "all" | "none">  determines amount of synchronous wrappers to generate; default: essential
  --use-datetimeoffset          use DateTimeOffset instead of DateTime to model date/time types
  --client-side-validation=<boolean>  whether to validate parameters at the client side (according to OpenAPI definition) before making a request; default: true
  --max-comment-columns=<number>  maximum line width of comments before breaking into a new line
  --output-file=<string>        generate all code into the specified, single file (instead of the usual folder structure)
  --sample-generation           generate sample code from x-ms-examples (experimental)
  --static-serializer           generate client serlializer settings as a static member (experimental)
@christianhelle christianhelle added the enhancement New feature or request label Oct 7, 2019
@christianhelle christianhelle self-assigned this Oct 7, 2019
@christianhelle
Copy link
Owner Author

This is related to issue #59 and #60

@christianhelle
Copy link
Owner Author

I extracted this options page from the autorest arguments for C#

AutoRest-Options-Page

@christianhelle
Copy link
Owner Author

This is now published the the marketplace as version 1.1.708

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant