AutoRestSettingsExtensions.

AddCredentials(AutoRestSettings, bool) Method

Summary

Enables the inclusion of a ServiceClientCredentials property and constructor parameter in generated code
Assembly
Cake.AutoRest.dll
Namespace
Cake.AutoRest
Containing Type
AutoRestSettingsExtensions

Syntax

public static AutoRestSettings AddCredentials(this AutoRestSettings settings, bool useCredentials = true)

Parameters

Name Type Description
settings AutoRestSettings Settings
useCredentials bool Set to true to enable credentials (defaults to true)

Return Value

Type Description
AutoRestSettings