This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.AutoRest.
Summary
Settings to control the AutoRest generation process.
- Assembly
- Cake
.AutoRest .dll - Namespace
- Cake
.AutoRest - Base Types
-
- ToolSettings
graph BT
Type-->Base0["ToolSettings"]
Type["AutoRestSettings"]
class Type type-node
Syntax
public class AutoRestSettings : ToolSettings
Remarks
Supports either standard object syntax or a fluent interface using extension methods.
Constructors
Name | Summary |
---|---|
AutoRestSettings |
Create a new instances of the AutoRestSettings class.
|
AutoRestSettings |
Create a new instances of the AutoRestSettings class.
|
Properties
Name | Value | Summary |
---|---|---|
AddCredentials | bool |
If true, the generated client includes a ServiceClientCredentials property and constructor parameter. Authentication behaviors are implemented by extending the ServiceClientCredentials type
|
ClientName | string |
Name to use for the generated client type.
|
Generator | CodeGenerator |
The code generator (see
CodeGenerator ) language.
|
GeneratorSettings | IGeneratorSettings |
Any generator-specific settings.
|
HeaderComment | string |
Text to include as a header comment in generated files.
|
Modeler | string |
The Modeler to use on the input.
|
Namespace | string |
The namespace to use for generated code
|
OutputDirectory | DirectoryPath |
The location for generated files.
|
OutputFileName | string |
If set, will cause generated code to be output to a single file.
|
Payload |
Nullable |
The maximum number of properties in the request body to be represented as method arguments.
|
Verbose | bool |
If set, will output verbose diagnostic messages.
|
Extension Methods
Name | Value | Summary |
---|---|---|
AddCredentials |
AutoRestSettings |
Enables the inclusion of a ServiceClientCredentials property and constructor parameter in generated code
Requires the Cake.AutoRest addin
|
AddHeaderComment |
AutoRestSettings |
Sets the generated code header comment
Requires the Cake.AutoRest addin
|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
OutputToDirectory |
AutoRestSettings |
Sets the output directory for generated code
Requires the Cake.AutoRest addin
|
OutputToFile |
AutoRestSettings |
Will cause generated code to be output to the specified single file. Not supported by all code generators.
Requires the Cake.AutoRest addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
UseClientName |
AutoRestSettings |
Sets the client name to use in generated code
Requires the Cake.AutoRest addin
|
UseFlattenThreshold |
AutoRestSettings |
Sets the property flattening threshold (see
AutoRestSettings )
Requires the Cake.AutoRest addin
|
UseNamespace |
AutoRestSettings |
Sets the client namespace
Requires the Cake.AutoRest addin
|
WithGenerator |
AutoRestSettings |
Sets the Generator used by AutoRest
Requires the Cake.AutoRest addin
|
WithModeler |
AutoRestSettings |
Sets the modeler used by AutoRest
Requires the Cake.AutoRest addin
|
WithVerboseOutput |
AutoRestSettings |
Enables verbose/diagnostic messages
Requires the Cake.AutoRest addin
|