AutoRestSettingsExtensions Class

Summary

Extension methods to enable fluent configuration of AutoRestSettings
Assembly
Cake.AutoRest.dll
Namespace
Cake.AutoRest
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["AutoRestSettingsExtensions"] class Type type-node

Syntax

public static class AutoRestSettingsExtensions

Methods

Name Value Summary
AddCredentials(AutoRestSettings, bool) AutoRestSettings
Enables the inclusion of a ServiceClientCredentials property and constructor parameter in generated code
static
AddHeaderComment(AutoRestSettings, string) AutoRestSettings
Sets the generated code header comment
static
OutputToDirectory(AutoRestSettings, DirectoryPath) AutoRestSettings
Sets the output directory for generated code
static
OutputToFile(AutoRestSettings, FilePath) AutoRestSettings
Will cause generated code to be output to the specified single file. Not supported by all code generators.
static
UseClientName(AutoRestSettings, string) AutoRestSettings
Sets the client name to use in generated code
static
UseFlattenThreshold(AutoRestSettings, int) AutoRestSettings
Sets the property flattening threshold (see AutoRestSettings)
static
UseNamespace(AutoRestSettings, string) AutoRestSettings
Sets the client namespace
static
WithGenerator(AutoRestSettings, CodeGenerator, IGeneratorSettings) AutoRestSettings
Sets the Generator used by AutoRest
static
WithModeler(AutoRestSettings, string) AutoRestSettings
Sets the modeler used by AutoRest
static
WithVerboseOutput(AutoRestSettings) AutoRestSettings
Enables verbose/diagnostic messages
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin